Skip to content

Commit c29f8d4

Browse files
author
git-core
committed
Remove the communication socket if Ctrl+C (SIGINT) or Ctrl+\ (SIGQUIT) are pressed
1 parent bc9bbec commit c29f8d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

su.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ int main(int argc, char *argv[])
446446
signal(SIGHUP, cleanup_signal);
447447
signal(SIGPIPE, cleanup_signal);
448448
signal(SIGTERM, cleanup_signal);
449+
signal(SIGQUIT, cleanup_signal);
450+
signal(SIGINT, cleanup_signal);
449451
signal(SIGABRT, cleanup_signal);
450452
atexit(cleanup);
451453

0 commit comments

Comments
 (0)