W
W K
I have a process that needs to check pids of other processes on win2000.
However, whenever when I do a kill 0, $pid - the number of handles (seen in
task manager) goes up by one.
As the process does this every minute non-stop, this gets to be a large
number of processes.
Is this a known bug/feature/mistake? Is there anything I should be doing to
clean up these handles?
The following replicates the problem - note that the "3004" must be a
process that is currently running.
for (1..5){
sleep 2;
for (1..100){kill 0,3004 }
}
print "press return";$_=<STDIN>;
However, whenever when I do a kill 0, $pid - the number of handles (seen in
task manager) goes up by one.
As the process does this every minute non-stop, this gets to be a large
number of processes.
Is this a known bug/feature/mistake? Is there anything I should be doing to
clean up these handles?
The following replicates the problem - note that the "3004" must be a
process that is currently running.
for (1..5){
sleep 2;
for (1..100){kill 0,3004 }
}
print "press return";$_=<STDIN>;