[Bug 339807] New: cscope does not remove its temporary files when used with vim
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@novell.com ReportedBy: tony@daylessday.org QAContact: qa@suse.de 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.
https://bugzilla.novell.com/show_bug.cgi?id=339807 Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |anosek@novell.com -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339807 User pth@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=339807#c1 --- Comment #1 from Philipp Thomas <pth@novell.com> 2007-12-10 04:57:03 MST --- Fixed for STABLE/FACTORY, i.e. the development version. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339807 User pth@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=339807#c2 Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |coolo@novell.com --- Comment #2 from Philipp Thomas <pth@novell.com> 2007-12-10 04:59:31 MST --- Stefan, shoukld I also do an update for 10.3? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339807 User tony@daylessday.org added comment https://bugzilla.novell.com/show_bug.cgi?id=339807#c3 --- Comment #3 from Antony Dovgal <tony@daylessday.org> 2007-12-10 05:55:39 MST --- Thanks! -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339807 User coolo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=339807#c4 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|coolo@novell.com |ast@novell.com --- Comment #4 from Stephan Kulow <coolo@novell.com> 2007-12-10 06:03:04 MST --- I don't think /tmp files are critical - and we only fix critical bugs with updates. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339807 User tony@daylessday.org added comment https://bugzilla.novell.com/show_bug.cgi?id=339807#c6 --- Comment #6 from Antony Dovgal <tony@daylessday.org> 2007-12-26 12:49:37 MST --- Shouldn't the report be closed if you're not going to apply the patch in 10.3? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339807 User anosek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=339807#c7 Ales Nosek <anosek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #7 from Ales Nosek <anosek@novell.com> 2008-01-04 02:49:00 MST --- Yes, closing the bug. -- 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.
participants (1)
-
bugzilla_noreply@novell.com