Re: Race condition in read -t

2015-08-31 Thread Chet Ramey
On 8/28/15 7:52 PM, Oleg Popov wrote: > Description: > Function reset_alarm() in read.def first resets SIGALRM handler and > then cancels alarm. Sometimes, SIGALRM comes between those 2 calls and > crashes (sub)shell. > > Repeat-By: > while sleep 0.00$RANDOM; do echo test;

Race condition in read -t

2015-08-28 Thread Oleg Popov
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/s