New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

^C exits osh instead of foreground process #36

Open
acg opened this Issue Sep 13, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@acg

acg commented Sep 13, 2017

$ echo $SHELL
/bin/bash
$ osh
osh$ cat
^C
$ echo $SHELL
/bin/bash
@acg

This comment has been minimized.

Show comment
Hide comment
@acg

acg Sep 13, 2017

Same with handling of other terminal signals (^Z).

acg commented Sep 13, 2017

Same with handling of other terminal signals (^Z).

@andychu

This comment has been minimized.

Show comment
Hide comment
@andychu

andychu Sep 13, 2017

Contributor

Thanks good point. Yes OSH isn't doing any signal handling at all right now.

I forget exactly how it works but I think we have to change the session group when starting a process. That way signals only get delivered to cat and not to osh.

I have to implement the trap builtin too so this could be done at the same time.

Contributor

andychu commented Sep 13, 2017

Thanks good point. Yes OSH isn't doing any signal handling at all right now.

I forget exactly how it works but I think we have to change the session group when starting a process. That way signals only get delivered to cat and not to osh.

I have to implement the trap builtin too so this could be done at the same time.

@acg

This comment has been minimized.

Show comment
Hide comment
@acg

acg Sep 14, 2017

I forget exactly how it works but I think we have to change the session group when starting a process.

Yup pretty sure you need a setsid(2).

acg commented Sep 14, 2017

I forget exactly how it works but I think we have to change the session group when starting a process.

Yup pretty sure you need a setsid(2).

@andychu andychu referenced this issue Sep 14, 2017

Closed

runtime issues with OSH, bash_profile, etc. #37

2 of 2 tasks complete
@icarroll

This comment has been minimized.

Show comment
Hide comment
@icarroll

icarroll Sep 14, 2017

Contributor

As an aside, if OSH is the login shell for an ssh connection, ^C kills OSH and closes the connection.

Contributor

icarroll commented Sep 14, 2017

As an aside, if OSH is the login shell for an ssh connection, ^C kills OSH and closes the connection.

@andychu

This comment has been minimized.

Show comment
Hide comment
Contributor

andychu commented Jan 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment