Repository navigation
Fix SIGTTIN handling - #9681
Fix SIGTTIN handling#9681
Conversation
|
Thanks! I think it'd allow users to debug in vscode, I remember @fdncred faced the issue before, it's really annoying |
|
Ya, and @sholderbach too. He has an issue open on it somewhere I think. It would be nice if it fixed that problem too. |
|
Oh yeah, issue #6788. Unfortunately, I don't think this fixes that. A temporary solution would be to disable some lines for debug builds. I made another comment on there. |
|
Thanks! |
|
This somehow causes the test binaries to stop: Launching the latest And after reviving things with |
|
Yep, sorry about that! |
…9693) # Description Fixes a regression from #9681 where nushell will attempt to place itself into the background or take control of the terminal even in non-interactive mode. Using the same [reference](https://www.gnu.org/software/libc/manual/html_node/Initializing-the-Shell.html) from #6584: >A subshell that runs *interactively* has to ensure that it has been placed in the foreground... >A subshell that runs *non-interactively* cannot and should not support job control. `fish` [code](https://github.com/fish-shell/fish-shell/blob/54fa1ad6ec7adb0d9c14076843ef5e51c18ecc7a/src/reader.cpp#L4862) also seems to follow this. This *partially* fixes [9026](#9026). That is, nushell will no longer set the foreground process group in non-interactive mode.
Description
Due to a typo? in the reference used to implement SIGTTIN handling, nushell will crash when being sent to the background from within another shell.
For example, currently in bash:
$ nu -n & [1] 176058 $ ERROR: failed to SIGTTIN ourselves [1]+ Exit 1 nu -n $Now fixed:
For further reference, this is how fish does it.
User-Facing Changes
Bug fix only -- users should now be able to send nushell to the background.