projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4519482
)
Check all sendmail PID files
author
Jamie Cameron
<jcameron@webmin.com>
Sat, 12 May 2007 04:42:46 +0000
(
04:42
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Sat, 12 May 2007 04:42:46 +0000
(
04:42
+0000)
sendmail/sendmail-lib.pl
patch
|
blob
|
history
diff --git
a/sendmail/sendmail-lib.pl
b/sendmail/sendmail-lib.pl
index
58dbe8e
..
29abebb
100644
(file)
--- a/
sendmail/sendmail-lib.pl
+++ b/
sendmail/sendmail-lib.pl
@@
-500,7
+500,11
@@
else {
# Use PID files, or check for process
local @pidfiles = split(/\t+/, $config{'sendmail_pid'});
if (@pidfiles) {
- return &check_pid_file($pidfiles[0]);
+ foreach my $p (@pidfiles) {
+ local $c = &check_pid_file($p);
+ return $c if ($c);
+ }
+ return undef;
}
else {
return &find_byname("sendmail");