in reply to
Re: Killing process group run with IPC::Open3
in thread Killing process group run with IPC::Open3
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")'
sent kill signal to 1
> perl test.pl 5 perl -e 'system("perl app.pl")'
Child exit status: 0 signal: 0
Is there any way to map <STDIN> in fixed.pl ?