You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: Currently when you suspend the urbit process from the terminal (via control-z) it gets treated as if it was sent a SIGTERM, the urbit is killed and the process exits and cannot be resumed. The correct way to treat a SIGTSTP is to get the urbit process into a good state and then send ourselves a SIGSTOP which suspends it. The user is then dropped back to a standard unix prompt. Then when the user attempts to resume the process (SIGCONT) the user gets the previously suspended process back.
Why: Handling this allows a user to quickly drop into the unix prompt without needing to wait for shutdown, it also allows the user to quickly resume the same process. There are alternatives (using tmux, screen, etc.) but we should properly support the signals received (which is what the user should expect).
zalberico
changed the title
Properly handle suspend from terminal (SIGTSTP) to support SIGCONT
Properly handle suspend from terminal (SIGTSTP) to support resume (SIGCONT)
Oct 25, 2022
Summary: Currently when you suspend the urbit process from the terminal (via control-z) it gets treated as if it was sent a SIGTERM, the urbit is killed and the process exits and cannot be resumed. The correct way to treat a
SIGTSTP
is to get the urbit process into a good state and then send ourselves aSIGSTOP
which suspends it. The user is then dropped back to a standard unix prompt. Then when the user attempts to resume the process (SIGCONT
) the user gets the previously suspended process back.Why: Handling this allows a user to quickly drop into the unix prompt without needing to wait for shutdown, it also allows the user to quickly resume the same process. There are alternatives (using tmux, screen, etc.) but we should properly support the signals received (which is what the user should expect).
Links
SGTSTP
asSIGTERM
: Exit on SIGTSTP. #592The text was updated successfully, but these errors were encountered: