[Bug 339807] New: cscope does not remove its temporary files when used with vim
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
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://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=339807
Philipp Thomas
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
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
participants (1)
-
bugzilla_noreply@novell.com