Hi ikegami,
That's a good point and infact I tried exec first (that's why use of setpgrp). But problem is I also need to capture <stdin> in my app. Here is example:
> cat app.pl
print "continue? "; $yesno=<STDIN>; print "--$yesno";
> perl fixed.pl 5 perl -e 'system("perl app.pl")'
continue? y
alarmed out
sent kill signal to 1
^C
> perl test.pl 5 perl -e 'system("perl app.pl")'
continue? y
--y
Child exit status: 0 signal: 0
Is there any way to map <STDIN> in fixed.pl ?
In reply to Re^2: Killing process group run with IPC::Open3
by pm_sanchay
in thread Killing process group run with IPC::Open3
by pm_sanchay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |