1143 |
|
|
1144 |
errno= 0; |
errno= 0; |
1145 |
if((pid= Util_getPid(s->path)) >= 0) { |
if((pid= Util_getPid(s->path)) >= 0) { |
1146 |
DEBUG("Info: Got pid %d from %s\n", pid, s->path); |
DEBUG("Info: Got pid [%d] from '%s'\n", pid, s->path); |
1147 |
if( (getpgid(pid) > -1) || (errno == EPERM) ) |
if( (getpgid(pid) > -1) || (errno == EPERM) ) |
1148 |
return pid; |
return pid; |
1149 |
DEBUG("Info: Error testing process id [%d] -- %s\n", pid, STRERROR); |
DEBUG("Info: Error testing process id [%d] -- %s\n", pid, STRERROR); |
|
} else { |
|
|
DEBUG("Info: No pid found at %s\n", s->path); |
|
1150 |
} |
} |
1151 |
Util_resetInfo(s); |
Util_resetInfo(s); |
1152 |
|
|