We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In bash/ash/dash, if you run exec $0 from within a signal handler things work fine and run in an infinite loop as they should:
exec $0
#!/usr/bin/env osh trap hup HUP hup() { echo "hup handler" exec $0 } main() { { echo subproc start sleep 1 kill -HUP 0 } & echo mainproc sleep 999 } main
In osh, this same script just terminates immediately at exec $0.
The text was updated successfully, but these errors were encountered:
Sorry for not responding to this. Does this break a program or did you find this through testing?
I just published a post that is largely about signal handlers, so maybe this new model will help with this difference ...
http://www.oilshell.org/blog/2022/01/notes-themes.html
But I can't think of a reason someone would want this, so it's probably low priority ...
Sorry, something went wrong.
No branches or pull requests
In bash/ash/dash, if you run
exec $0
from within a signal handler things work fine and run in an infinite loop as they should:In osh, this same script just terminates immediately at
exec $0
.The text was updated successfully, but these errors were encountered: