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);