[rt.cpan.org #102709] Unable to handle SIG interrupts

[email protected] ("Dmytro Zagashev via RT")
Newsgroups perl.par
Message-ID <[email protected]>
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: [email protected]
      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
patch (application/octet-stream, 472 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.