Re: [PATCH] cli: Flush stdout before fork()ing to run hooks

Subject: Re: [PATCH] cli: Flush stdout before fork()ing to run hooks

Date: Tue, 25 Mar 2014 21:33:36 -0300

To: Austin Clements, notmuch@notmuchmail.org

Cc:

From: David Bremner


Austin Clements <amdragon@MIT.EDU> writes:

> Without this flush, if stdout is block buffered (which will happen if
> it's a pipe or a file, for example) and the hook also writes to
> stdout, then notmuch new's output will appear *after* the hook output.
>
> This situation may be a little esoteric, but it's good practice to
> flush before you fork anyway.

pushed.

d

Thread: