You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SIGTERM handler does not run if there are no tasks running and exit code is always 0 #28502
To run the following tests paste them into
index.jsand runnode index.js; echo $?Case 1
The following results in an expected output:
Output:
Case 2
Adding a SIGTERM results in an exit code of 0, and the handler never runs:
Output:
Case 3
Adding a timeout or some other task that keeps node alive results in the expected behavior:
Output: