Skip to content
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

Exclude SIGALRM from the blocked signals #1479

Closed
wants to merge 1 commit into from

Conversation

bwelterl
Copy link

@bwelterl bwelterl commented Jan 7, 2021

If an alarm is needed in one of the script in the RPM, it will be ignored because of the blocked signals.
For example, if you use flock with -w, the alarm after the timeout will never be received:

%pre
flock -x -w 19 /tmp/lock sleep 99

If an alarm is set in one of the script in the RPM, it will be ignored because of the blocked signal.
For example, if you use flock with -w, the alarm after the timeout will never be received:
---
%pre
flock -x -w 19 /tmp/lock sleep 99
---
Copy link
Member

@pmatilai pmatilai left a comment

Choose a reason for hiding this comment

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

NAK, rpm does not want that signal. The shell invoking that command is a whole other question though.

I think the right thing to do here is to unblock all signals in the child after a successful fork in rpmscript.c. It's almost surprising we haven't had more bugs because of this.

@pmatilai
Copy link
Member

As there has been no reaction, went ahead and implemented the suggested changes in a separate PR: #1486

Thanks for the patch though.

@pmatilai pmatilai closed this Jan 12, 2021
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.

None yet

2 participants