Applied. Thanks.

Regards--
Subrata

On Mon, 2008-06-02 at 18:19 +0200, Renaud Lottiaux wrote:
> Hi !
> 
> This patch fix an issue in the sync_pipe implementation. The problem is
> the following : after the creation of a pipe we do not close any file
> descriptor until the end of a test.
> 
> Let's imagine the following execution :
> 
> - Process A calls sync_pipe_create
> - Process A do a fork (creation of process B)
> - Process A calls sync_pipe_wait
> ---> Process A blocks on sync_pipe_wait
> - Process B starts
> - Process B exits because of an early error.
> 
> In this case, process A never exits. Since it has not closed its write
> descriptor to the pipe, the pipe is not considered as broken, thus
> process A is not notified its son is dead. Thus it will wait forever.
> 
> Regards.
> 
> R.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________ Ltp-list mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/ltp-list


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to