[Bug 149] shell history file is overwritten after every command
bugzilla at busybox.net
bugzilla at busybox.net
Sun Mar 22 18:56:47 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=149
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> 2009-03-22 18:56:46 UTC ---
Created an attachment (id=181)
--> (https://bugs.busybox.net/attachment.cgi?id=181)
Patch: make history saving/loading concurrent-safe
Please try this patch.
It makes the following changes:
* all history writes always append (not overwrite) history files
* they reload history if they detect that file length has changed since last
write
* they trim history file only when it grows 4 times longer thna MAXLINES
* they do this atomically by creating new file and renaming it to old.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list