projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e56412d
)
Notify.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 3 Feb 2012 02:31:52 +0000
(10:31 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 3 Feb 2012 02:31:52 +0000
(10:31 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
2f61102
..
1b771b6
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-201,14
+201,14
@@
class Pman_Core_Notify extends Pman
$pool = array();
clearstatcache();
foreach($this->pool as $p) {
- $ar = proc_get_status($p['proc']);
+
- if (file_exists('/proc/'.$
ar
['pid'])) {
+ if (file_exists('/proc/'.$
p
['pid'])) {
$pool[] = $p;
continue;
}
- echo $p['cmd'] . " : " . file_get_contents($p['out']) . "\n";
+ echo
"ENDED: " .
$p['cmd'] . " : " . file_get_contents($p['out']) . "\n";
//unlink($p['out']);
}
$this->pool = $pool;