Subject: | Extra fork in makepp causes problems |
Date: | Thu, 26 Jul 2012 11:00:39 -0700 |
To: | "bug-makepp [...] rt.cpan.org" <bug-makepp [...] rt.cpan.org> |
From: | Yuri Shtil <yshtil [...] nvidia.com> |
Hi,
I noticed that if the action line of a target starts with -, makepp creates an extra fork layer:
makepp -> makepp -> script
As opposed to
makepp -> script
when no dash is present.
In the second scenario if a signal INT/TERM is sent to the makepp process, nothing happens (as it should).
In the first scenario, if the INT/TERM is sent to the FIRST makepp, nothing happens - OK.
If the INT/TERM is sent to the SECOND makepp, it exits immediately leaving an orphan script process.
This causes a lot of problems when running under LSF. If a job is killed , it apparently send an INT/TERM to the whole process group, and then after a while if the processes still running, sends KILL.
The first INT/TERM leaves orphans for all actions that are with a dash.
Attached are Makeppfile and the script to reproduce the problem.
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
Message body not shown because it is not plain text.