Skip to content

Commit

Permalink
test: fix common.isAlive()
Browse files Browse the repository at this point in the history
Use signal value `0` rather than `'SIGCONT'` as the latter appears to
behave unexpectedly on Alpine 3.8.

Fixes: nodejs#22308
  • Loading branch information
Trott committed Nov 30, 2018
1 parent 01c5c16 commit b96bcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ function busyLoop(time) {

function isAlive(pid) {
try {
process.kill(pid, 'SIGCONT');
process.kill(pid, 0);
return true;
} catch {
return false;
Expand Down

0 comments on commit b96bcec

Please sign in to comment.