Skip to content

Commit 5f2a241

Browse files
committed
Exit with -SIGTERM
1 parent 256029b commit 5f2a241

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void term_handler(int n) {
249249
// signal handler is not safe. To properly clean up a process, we'd
250250
// need R to handle SIGTERM and clean up at check-interrupt
251251
// time. We do run `atexit()` handlers though.
252-
exit(EXIT_FAILURE);
252+
exit(-SIGTERM);
253253
}
254254

255255
void install_term_handler(void) {

0 commit comments

Comments
 (0)