This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jon orebro
Recipients docs@python, jon orebro
Date 2015-11-19.09:00:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447923633.78.0.317393195352.issue25666@psf.upfronthosting.co.za>
In-reply-to
Content
Description:
I found a slight problem with signal handling. It seems that if you have a signal handler setup for a signal, right after a fork the child ignores that signal for a short time. This is regardless of what the signal handler is setup to do. This can cause hangs if the parent immediately kills and then waits for the child. Since the timeframe is small, in practice this only happens sometimes (se example). There might be a reason for this behavour, but in that case I think it should me mentioned in the docs.

What I expected:
I expected the child to, at any point in time, either do the default action for the signal (terminate in this case), or to run the signal handler.

What happens:
It ignores the signal for a short while.

Tested versions:
Python 2.7.6
Python 3.4.0
History
Date User Action Args
2015-11-19 09:00:33jon orebrosetrecipients: + jon orebro, docs@python
2015-11-19 09:00:33jon orebrosetmessageid: <1447923633.78.0.317393195352.issue25666@psf.upfronthosting.co.za>
2015-11-19 09:00:33jon orebrolinkissue25666 messages
2015-11-19 09:00:33jon orebrocreate