mirror of
https://github.com/friendica/friendica
synced 2025-04-26 02:30:11 +00:00
Dead processes will be deleted when they are running for more than 9 minutes.
This commit is contained in:
parent
58cea13707
commit
e32f9c4fff
5 changed files with 31 additions and 8 deletions
|
@ -60,7 +60,7 @@ function onepoll_run(&$argv, &$argc){
|
|||
// Test
|
||||
$lockpath = get_config('system','lockpath');
|
||||
if ($lockpath != '') {
|
||||
$pidfile = new pidfile($lockpath, 'onepoll'.$contact_id.'.lck');
|
||||
$pidfile = new pidfile($lockpath, 'onepoll'.$contact_id);
|
||||
if($pidfile->is_already_running()) {
|
||||
logger("onepoll: Already running for contact ".$contact_id);
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue