File cscope-cleanup_on_sigterm.patch of Package cscope
--- src/main.c +++ src/main.c @@ -379,6 +379,8 @@ } /* cleanup on the hangup signal */ signal(SIGHUP, myexit); + /* and on termination signal */ + signal(SIGTERM, myexit); /* if the database path is relative and it can't be created */ if (reffile[0] != '/' && access(".", WRITE) != 0) {