kill(0,$pid) return 1 after application is killed manually
I am trying to check if notepad is running by doing kill(0,
$notepad_pid). While notepad is up and runnig the code returns 1 as
it should. Then, I close notepad manually, but kill(0, $notepad_pid)
still returns 1.
Here is my sample code:
print "kill => $tst\n";
I close notepad when perl is in the for loop. Does anyone know the
solution to this problem?
|All times are GMT. The time now is 12:54 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.