[Bug 379541] New: mc is very bad in cleaning up temp-directories
https://bugzilla.novell.com/show_bug.cgi?id=379541 Summary: mc is very bad in cleaning up temp-directories Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dieter.jurzitza@t-online.de QAContact: sndirsch@novell.com Found By: --- mc creates a temporary directory for every user, say /tmp/mc-<username> Howerver, if one scans the contents of rpm-archives (what I do frequently) this directory keeps growing over all bounds because mc (the version supplied with opensuse-10.3 at least) does not tidy up. Therefore I provided a modification to the mc-wrapper scripts in /usr/share/mc/bin that ensure that when the last session of mc of the specific user is terminated, this directory is being wiped clean. So far no side-effects. Testing with csh has not been as good as testing with bash, but I tested several times and everything seemed to work. Take care Dieter Jurzitza -- 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=379541 User dieter.jurzitza@t-online.de added comment https://bugzilla.novell.com/show_bug.cgi?id=379541#c1 --- Comment #1 from Dieter Jurzitza <dieter.jurzitza@t-online.de> 2008-04-13 12:02:30 MST --- Created an attachment (id=207638) --> (https://bugzilla.novell.com/attachment.cgi?id=207638) improve tidying up behaviour of mc This patch ensures that when closing the last instance of mc of a specific user the temporary directory will be wiped clean. -- 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=379541 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|X11 Applications |Other QAContact|sndirsch@novell.com |qa@suse.de -- 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=379541 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sndirsch@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |nadvornik@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=379541 User nadvornik@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=379541#c2 Vladimir Nadvornik <nadvornik@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Vladimir Nadvornik <nadvornik@novell.com> 2008-09-09 11:03:24 MDT --- mc clears the temporary directory at exit. The only exception are the situation when the machine crashes or similar and then it is not only mc's problem. The wrapper script is IMHO too dangerous. I am not going to add it to the package. Please talk to upstream if you think that the behavior should be improved. -- 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=379541 User dieter.jurzitza@t-online.de added comment https://bugzilla.novell.com/show_bug.cgi?id=379541#c3 Dieter Jurzitza <dieter.jurzitza@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #3 from Dieter Jurzitza <dieter.jurzitza@t-online.de> 2008-09-09 14:04:41 MDT --- Please let me know what is the meaning of "upstream" because the behaviour leaving waste if killed is not ok - I had had harddisk overflows due to this behaviour (and I do not see what is dangerous about my script!) IMHO this issue is not RESOLVED. No one expects that waste is accumulating if programs are terminated by forcibly closing the terminal (i.e. an xterm) they're running within. There is no need for crashes at all. You simply need an open xterm running mc and someone terminates your login session. Nothing exceptional at all! Imagine you loose the internet connection during a session where you parse a rpm on the net - boum, mc hangs and you are _forced_ to terminate the session by closing the terminal. If you think my script is not ok, the solution could be that mc marks the temp-directory as "dirty" when starting up and cleans it if the dirty mark has not been removed at next start. But this implies programming scills I cannot provide - I can play with scripts - but that's about it. Deleting the directory at each start would imply to know that there are no other instances of mc running, what I'd consider difficult. Thank you for looking into this, take care Dieter Jurzitza -- 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