Skip to content
This repository was archived by the owner on Feb 6, 2019. It is now read-only.

Commit 7ea8bb5

Browse files
committed
(event) changed eventhandling for child term to signal handler
1 parent fb6d4a3 commit 7ea8bb5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
## [2.1.0] - 18.10.2017
9+
### [Changed]
10+
* signal handling for child termination to signal handler
811

912
## [2.0.0] - 18.10.2017
1013
### [Added]

task.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ function forkTask(
2020
throw new Exception('The task could not be forked off.');
2121
}
2222

23-
// ingore child termination event
24-
pcntl_signal(SIGCHLD, SIG_IGN);
23+
// ingore child termination event
2524
if ($signalHandler !== null) {
2625
pcntl_signal(SIGTERM, $signalHandler);
26+
pcntl_signal(SIGCHLD, $signalHandler);
2727
}
2828

2929
if ($processId === 0) {

0 commit comments

Comments
 (0)