NetBSD-Bugs archive

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

Re: bin/56422: zgrep -l sometimes hangs



The following reply was made to PR bin/56422; it has been noted by GNATS.

From: Andreas Gustafsson <gson%gson.org@localhost>
To: "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: bin/56422: zgrep -l sometimes hangs
Date: Fri, 1 Oct 2021 19:28:05 +0300

 J. Hannken-Illjes wrote:
 >  This deadlock happens whenever the writer has more data and no space
 >  while the reader is closing the pipe.
 
 Thank you for investigating this.
 
 >  Simply swapping the EOF test and the wait_sig in pipe_write() should
 >  fix it.  Diff attached, please give it a try.
 
 With the patch, my test passes.  I also ran the ATF tests and there
 were no new failures.
 -- 
 Andreas Gustafsson, gson%gson.org@localhost
 


Home | Main Index | Thread Index | Old Index