Igor Ryaboy wrote:
> Hi,
> Thanks for your help, 1 more question related to your advice
> Ok, How can I kill exec after it was started in different thread?
> Igor
>
when you fork, you have the pid of the child process. when you exec, the
program in exec will replaced the child process but the pid won't change so
it's a matter of sending a kill signal to abort it. for this purpose, Perl
has a 'kill' function.
perldoc -f kill
david
--
sub'_{print"@_ ";* \ = * __ ,\ & \}
sub'__{print"@_ ";* \ = * ___ ,\ & \}
sub'___{print"@_ ";* \ = * ____ ,\ & \}
sub'____{print"@_,\n"}&{_+Just}(another)->(Perl)->(Hacker)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>