Skip to content

Commit a3068c0

Browse files
committed
Signal handling: Always exit non-zero
The default signal handler always exits non-zero so the signal listener installed by threads.js should too.
1 parent 58c1c4b commit a3068c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/master/implementation.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface Terminable {
3434
// Terminates the workers, empties the workers array, and exits.
3535
const onSignal = (workers: Terminable[], signal: string) => {
3636
Promise.all(workers.map(worker => worker.terminate())).then(
37-
() => process.exit(0),
37+
() => process.exit(1),
3838
() => process.exit(1),
3939
)
4040
workers.length = 0

0 commit comments

Comments
 (0)