cscope/cscope-cleanup_on_sigterm.patch

14 lines
390 B
Diff
Raw Normal View History

Index: src/main.c
===================================================================
--- src/main.c.orig
+++ src/main.c
@@ -375,6 +375,8 @@ cscope: Could not create private temp di
}
/* cleanup on the hangup signal */
signal(SIGHUP, myexit);
+ /* and on termination signal */
+ signal(SIGTERM, myexit);
/* ditto the TERM signal */
signal(SIGTERM, myexit);