Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bash job control broken?



On Wed, Apr 27, 2016 at 05:24:54PM +0200, Thomas Klausner wrote:
> I see strange behaviour on NetBSD-current with bash (sh, zsh are
> fine). Here's a simple test case:
> 
> # cat /dev/zero >&/dev/null
> CTRL-Z
> [1]+  Stopped                 cat /dev/zero &> /dev/null
> # bg
> [1]+ cat /dev/zero &> /dev/null &
> 
> and the prompt doesn't return.
> 
> Neither CTRL-Z nor CTRL-C work.

After

Module Name:    src
Committed By:   christos
Date:           Wed Apr 27 21:15:40 UTC 2016

Modified Files:
        src/sys/kern: kern_exit.c kern_sig.c
        src/sys/sys: proc.h

Log Message:
We need a flag for WCONTINUED so that we can reset it... Fixes bash issue.


To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 src/sys/kern/kern_exit.c
cvs rdiff -u -r1.325 -r1.326 src/sys/kern/kern_sig.c
cvs rdiff -u -r1.329 -r1.330 src/sys/sys/proc.h

this works fine now.

Thanks, christos!
 Thomas


Home | Main Index | Thread Index | Old Index