Fri Jul 03 23:12:58 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: gab...@gmail.com
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=102709 >


We need to ignore SIGINT in main process under windows.

Here is the patch:

diff -r PAR-Packer-1.025/myldr/boot.c PAR-Packer-1.025-orig/myldr/boot.c
219,228d218
<     #include <signal.h>
< 
<     void sigintHandler(int sig_num) {
<         /* Reset handler to catch SIGINT next time. Refer 
http://en.cppreference.com/w/c/program/signal */
<         signal(SIGINT, sigintHandler);
<       }
< 
<     /* Set the SIGINT (Ctrl-C) signal handler to sigintHandler Refer 
http://en.cppreference.com/w/c/program/signal */
<     signal(SIGINT, sigintHandler);
< 

Tested under:

strawberry-perl-5.20.2-x64
strawberry-perl-5.22.0
strawberry-perl-5.22.0-x64

Attachment: patch
Description: Binary data

Reply via email to