-
Notifications
You must be signed in to change notification settings - Fork 36
Fix CTRL-C on a program launched with rlimit #597
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
Conversation
d041900
to
2af9e60
Compare
2af9e60
to
55dd4a7
Compare
58a3d10
to
b61b1a5
Compare
e171357
to
46fbe77
Compare
46fbe77
to
e059948
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok if aix, darwin and solaris executables are not rebuilt ?
All the other points discussed have been fixed, so, appart from those missing builds (which I am not sure are used anymore ?) MR should be ok for me.
e059948
to
f35e7b0
Compare
To correct CTRL-C, we stop setting rlimit as the foreground program and ignore the SIGTTOU signal. However, this does not allow rlimit to be used with an interactive terminal. To solve this problem, we introduce the --foreground option. IT-465
f35e7b0
to
ce4ae52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should ok now :)
setpgid should be used when the program is running in the background so as not to worry about signal propagation.
Now we detect whether we are a background process or not, and call setpgid accordingly.
IT-465