"sleep(10000);\n"With:
"for(1..100){sleep(1);print\"$_\\n\";}\n"
And, make sure there's a newline in the print from the SIGINT handler. It should work now. The ctrl-c interrupts the sleep(10000), so that's why the perl exits. With the change above, you'll see the for loop resume after the ctrl-c. In reply to Re: Pass signals and argv from C to embedded Perl
by kschwab
in thread Pass signals and argv from C to embedded Perl
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |