handle exit of forked backup-cronjob correctly

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-04-28 15:40:43 +02:00
parent b1446d366e
commit 7c44c5ea75

View File

@@ -106,3 +106,8 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) {
// remove entry
Database::pexecute($del_stmt, array('id' => $row['id']));
}
if (function_exists('pcntl_fork')) {
@unlink($BackupLock);
die();
}