Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up^C exits osh instead of foreground process #36
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
acg
commented
Sep 13, 2017
|
Same with handling of other terminal signals (^Z). |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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.
|
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 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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
Yup pretty sure you need a |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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.
|
As an aside, if OSH is the login shell for an ssh connection, ^C kills OSH and closes the connection. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andychu
Jan 30, 2018
Contributor
Also mentioned here: https://lobste.rs/s/l8r1nw/why_create_new_unix_shell#c_sfmsrv
|
Also mentioned here: https://lobste.rs/s/l8r1nw/why_create_new_unix_shell#c_sfmsrv |
acg commentedSep 13, 2017