From: SourceForge.net <no...@so...> - 2007-11-07 13:37:03
|
Bugs item #1827519, was opened at 2007-11-07 05:36 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=1827519&group_id=4664 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: [PATCH] myexit() is not called on SIGTERM Initial Comment: myexit() function is registered as a handler for SIGINT, SIGQUIT and SIGHUP signals, though vim sends SIGTERM on shutdown, so myexit() is never called when cscope is used in conjunction with vim and all the temporary files/directories are not removed. Proposed patch looks like this: --- cscope-15.6.orig/src/main.c 2006-09-30 12:13:00.000000000 +0400 +++ cscope-15.6/src/main.c 2007-11-07 16:35:44.000000000 +0300 @@ -379,6 +379,7 @@ } /* cleanup on the hangup signal */ signal(SIGHUP, myexit); + signal(SIGTERM, myexit); /* if the database path is relative and it can't be created */ if (reffile[0] != '/' && access(".", WRITE) != 0) { ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=1827519&group_id=4664 |