Skip to content

Conversation

leocardao
Copy link
Contributor

@leocardao leocardao commented Jun 15, 2023

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

@leocardao leocardao requested review from Nikokrock and Helflym June 15, 2023 12:39
@leocardao leocardao self-assigned this Jun 15, 2023
@leocardao leocardao force-pushed the topic/fix-rlimit-ctrl-c branch from d041900 to 2af9e60 Compare June 15, 2023 15:37
@leocardao leocardao requested a review from enzbang June 15, 2023 15:38
@leocardao leocardao force-pushed the topic/fix-rlimit-ctrl-c branch from 2af9e60 to 55dd4a7 Compare June 16, 2023 12:20
@leocardao leocardao changed the title CTRL-C on a program launched with rlimit no longer worked correctly Fix CTRL-C on a program launched with rlimit Jun 16, 2023
@leocardao leocardao force-pushed the topic/fix-rlimit-ctrl-c branch 2 times, most recently from 58a3d10 to b61b1a5 Compare June 19, 2023 13:42
@leocardao leocardao force-pushed the topic/fix-rlimit-ctrl-c branch 4 times, most recently from e171357 to 46fbe77 Compare June 21, 2023 16:29
@leocardao leocardao force-pushed the topic/fix-rlimit-ctrl-c branch from 46fbe77 to e059948 Compare June 23, 2023 11:46
Copy link
Contributor

@grouigrokon grouigrokon left a 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.

@leocardao leocardao force-pushed the topic/fix-rlimit-ctrl-c branch from e059948 to f35e7b0 Compare June 23, 2023 12:58
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
@leocardao leocardao force-pushed the topic/fix-rlimit-ctrl-c branch from f35e7b0 to ce4ae52 Compare June 23, 2023 13:00
Copy link
Contributor

@grouigrokon grouigrokon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should ok now :)

@leocardao leocardao merged commit 8d119bf into AdaCore:master Jun 23, 2023
@leocardao leocardao deleted the topic/fix-rlimit-ctrl-c branch June 23, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants