in reply to
Re^2: How to forcefully destroy a thread
in thread
How to forcefully destroy a thread
All the threads inside a single process has the same PID. So it will not work.
-DBC
Comment on
Re^3: How to forcefully destroy a thread
Replies are listed 'Best First'.
Re^4: How to forcefully destroy a thread
by
Joost
(Canon)
on Aug 11, 2004 at 12:29 UTC
Note that this code does not kill() the thread, it kills another process:
open P,"program|"
or
qx
will fork() and then exec() a new program, so that will have a different PID.
"What should it profit a man, if he should win a flame war, yet lose his cool?"
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom