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

David Bremner david at tethera.net
Tue Mar 25 17:33:36 PDT 2014


Austin Clements <amdragon at 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


More information about the notmuch mailing list