Subject: Re: pkg/20908: bash crach when killing some process
To: None <bouloumag@hotmail.com>
From: Soren Jacobsen <soren@blef.org>
List: netbsd-bugs
Date: 03/27/2003 10:23:22
On Thu, Mar 27, 2003 at 10:14:10AM -0800, bouloumag@hotmail.com wrote:
> In an xterm (or a konsole, gnome-terminal, etc) promp, just enter the
> folowing command
> % exec sort
>
> and after kill it with ctrl+c. The whole shell (and the xterm) is killed.
This is not a bug. Read the man page for bash or ksh or sh or csh,
probably. exec simply executes the command, _without_ forking. So your
shell process is replaced with the new exec'd process, and when it
exits, your original shell is no more.
--
Soren Jacobsen