diff options
author | Anna Henningsen <anna@addaleax.net> | 2016-08-01 12:58:24 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2016-08-11 18:42:41 +0200 |
commit | 6d3241d19c89427b79324ce348d7f42dee5b7531 (patch) | |
tree | 9d1abba7f38372d22d55c2bcb0dcccb9f2192cf1 /src/node_watchdog.h | |
parent | 84f07782470dd515bfc8fcc3f0c70e03848eb593 (diff) | |
download | node-new-6d3241d19c89427b79324ce348d7f42dee5b7531.tar.gz |
test,util: fix flaky test-util-sigint-watchdog
Fix parallel/test-util-sigint-watchdog by polling until the
signal has definitely been received instead of just using a timeout.
Fixes: https://github.com/nodejs/node/issues/7919
PR-URL: https://github.com/nodejs/node/pull/7933
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_watchdog.h')
-rw-r--r-- | src/node_watchdog.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_watchdog.h b/src/node_watchdog.h index 43842147f9..dd97e4e735 100644 --- a/src/node_watchdog.h +++ b/src/node_watchdog.h @@ -63,6 +63,7 @@ class SigintWatchdogHelper { static SigintWatchdogHelper* GetInstance() { return &instance; } void Register(SigintWatchdog* watchdog); void Unregister(SigintWatchdog* watchdog); + bool HasPendingSignal(); int Start(); bool Stop(); |