projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe2e0d5
)
Notify.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 3 Feb 2012 02:27:29 +0000
(10:27 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 3 Feb 2012 02:27:29 +0000
(10:27 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
ae3b3e4
..
2e41a60
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-197,11
+197,12
@@
class Pman_Core_Notify extends Pman
function poolfree()
{
$pool = array();
+ clearstatcache();
foreach($this->pool as $p) {
$ar = proc_get_status($p['proc']);
- // print_r($p);
- print_r($ar);
- if (
$ar['running']
) {
+
+
+ if (
file_exists('/proc/'.$ar['pid'])
) {
$pool[] = $p;
continue;
}