[rt.cpan.org #102709] Unable to handle SIG interrupts
[email protected] ("Dmytro Zagashev via RT")
| Newsgroups | perl.par |
|---|---|
| Message-ID | <[email protected]> |
Mon Jul 06 02:30:57 2015: Request 102709 was acted upon.
Transaction: Correspondence added by ZDM
Queue: PAR-Packer
Subject: Unable to handle SIG interrupts
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=102709 >
On Sat Jul 04 12:43:51 2015, RSCHUPP wrote:
> On 2015-07-03 23:12:58, ZDM wrote:
> > We need to ignore SIGINT in main process under windows.
>
> > Here is the patch:
>
> First, this isn't Windows specific (makes no sense when not on Windows.
> Second, it isn't the correct solution to the original problem.
>
> Cheers, Roderich
>
Why you say, that this is not correct solution?
The problem is, that under windows the parent process exited on CTRL+C (and, also, do not perform temp dir cleanup, if PAR was created with --clean option) immediately, without waiting until child process exit.
Parent process under windows should exit only after child has been finished. The proper solution - is to ignore SIGINT in parent process.
This patch solves this and do not affect linux code.