Mailinglist Archive: opensuse-bugs (9642 mails)

< Previous Next >
[Bug 339807] New: cscope does not remove its temporary files when used with vim
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 7 Nov 2007 06:44:22 -0700 (MST)
  • Message-id: <bug-339807-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=339807

Summary: cscope does not remove its temporary files when used
with vim
Product: openSUSE 10.3
Version: Final
Platform: x86-64
OS/Version: openSUSE 10.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Development
AssignedTo: pth@xxxxxxxxxx
ReportedBy: tony@xxxxxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: Other


cscope removes temporary files in myexit() function which is called on shutdown
and/or when SIGHUP/SIGINT/SIGQUIT received.
vim sends SIGTERM to cscope on shutdown, so myexit() is never called and
temporary files are not removed (so I get dozens cscope.XXXX directories in
/tmp a day).
A possible solution is to register myexit() as a handler for SIGTERM.
See the patch below.

This bug has been reported to the mainstream (see
http://sourceforge.net/tracker/index.php?func=detail&aid=1827519&group_id=4664&atid=104664)
and hopefully will get there sooner or later.

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


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups