On 6 September 2013 16:26, John Moyer <j...@rsok.com> wrote: > Package: ksh > Version: 93u+-1.2 > Severity: normal > > Dear Maintainer, > *** Please consider answering these questions, where appropriate *** > > * What led up to the situation? > ksh is login shell. > On desktop, start multiple xterm -ls -sb -vb -geom 80x43 > HISTFILE and HISTSIZE are set and HISTFILE contains at least HISTSIZE > commands. > (in my case HISTSIZE==20000 and more than 12 xterms). > Log out saving desktop layout. > When logging back into desktop, xterms are restarted in background. > Each ksh checks whether HISTFILE needs to be truncated to HISTSIZE commands. > There is a race condition and no lock between when ksh instances check > size of HISTFILE and when they truncate it. > Maybe flock would fix this?
Does your file system support flock() or the fcntl() locking apis? How does bash work around the problem? Ced -- Cedric Blancher <cedric.blanc...@gmail.com> Institute Pasteur -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org