Re: interrupted system call when using named pipes on FreeBSD

2013-02-04 Thread Chet Ramey
On 2/4/13 7:30 AM, Lionel Cons wrote: >> It seems like implementations are buggy enough that bash needs to do >> something to work around them, but this isn't exactly it. >> >> The issue with the proposed patch is that it would make it impossible to >> interrupt an open using, say, ^C. There need

Re: interrupted system call when using named pipes on FreeBSD

2013-02-04 Thread Lionel Cons
On 30 January 2013 17:48, Chet Ramey wrote: >> a simple patch to workaround/fix the issue by Yuta SATOH: >> --- bash-4.2/redir.c >> +++ bash-4.2/redir.c >> @@ -632,7 +632,9 @@ >> } >>else >> { >> - fd = open (filename, flags, mode); >> + do { >> + fd = open (filename, f