I tested with fcntl() that the stding had te flag set.
Repeat-By:
random after some usage
Fix:
`exec bash` resolves it
--
Matteo Croce
per aspera ad upstream
On Wed, Oct 2, 2019 at 4:28 PM Chet Ramey wrote:
>
> On 10/2/19 8:27 AM, Matteo Croce wrote:
>
> > Bash Version: 5.0
> > Patch Level: 7
> > Release Status: release
> >
> > Description:
> > Sometimes bash leaves the pts with O_NONBLOCK set, and al
s:
$ ./foo; cat
cat: -: Resource temporarily unavailable
$
Why this different behaviour?
Regards,
--
Matteo Croce
per aspera ad upstream
On Wed, Oct 2, 2019 at 8:16 PM Andreas Schwab wrote:
>
> On Okt 02 2019, Matteo Croce wrote:
>
> > It seems to me that bash restores the flag, cat prints an error when not:
> >
> > $ cat
> > $
> >
> > the same is not true if running multiple comman