cvs commit: src/sys/kern vfs_syscalls.c

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Sat Sep 23 23:43:12 PDT 2006


On Fri, Sep 22, 2006 at 10:16:23AM -0700, Matthew Dillon wrote:
> :I noticed that rebooting something like this
> :
> :$ cd ~
> :$ su root -c reboot
> :Password:
> :
> :can cause the warning to be printed for filesystems other than root,
> :and my shell history is lost.  This hasn't been the case until recently.
					:

I tried booting the kernel/userland from middle of August, and
it had the same problem, so it's definitely not related to this commit.
Sorry about the confusion.

>     Two things can be happenning if you are losing your history.  It depends
>     whether you are losing the entire history or just the history for the
>     calling session.  The shell doesn't write out its history until it 
>     exits.  The kernel will SIGHUP it first, and then later kill -9 it.  If
>     the shell is the one that called reboot there could be a race going on
>     there.  There are also a number of 'savehist' options you can set.  I
>     have mine set like this:
> 
> 	set history = 1000
> 	set savehist = ( 1000 merge )

I forgot mentioning that I use /bin/sh as my login shell (and login shell for
root, too) and usually use `exec bash' after that.  When I did the reboot,
bash was the only shell process that was to write out the history.





More information about the Commits mailing list