anna has asked for the wisdom of the Perl Monks concerning the following question:
As I expect, it kills the forked process without executing the command. Can anyone help me with the problem?... $pid = fork() if($pid == 0) { if($command =~ /\&$/) { if(-t STDIN and -t STDOUT) { kill TTOU =>$pid; exec($command); } } else { ... } }
thanks in advance, anna.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: send SIGTTOU to forked process?
by ikegami (Patriarch) on Dec 11, 2009 at 08:30 UTC | |
|
Re: send SIGTTOU to forked process?
by ikegami (Patriarch) on Dec 11, 2009 at 08:04 UTC | |
|
Re: send SIGTTOU to forked process?
by Anonymous Monk on Dec 11, 2009 at 07:08 UTC | |
by ikegami (Patriarch) on Dec 11, 2009 at 08:14 UTC |