Why "Close pipe and wait for the pipe process termination"?

Denys Vlasenko dvlasenk at redhat.com
Thu Sep 27 11:34:44 UTC 2012


On 09/13/2012 05:56 PM, Dmitry V. Levin wrote:
>> Why is the below change necessary?
>> Was there any bad behavior in this area before it?
> 
> Before this change, strace used to exit before the pipe process
> termination, there were no convenient method to wait for its
> completion, and that behavior wasn't documented.  As result,
> strace users sometimes experienced unexpected data losses.

Ah, I see. Some users were assuming that logger process
has exited when they saw strace exiting, which wasn't guaranteed.
We only guaranteed that we fed it all the data.

> Is there any regressions with the change?

No.

-- 
vda




More information about the Strace-devel mailing list