GNOME Bugzilla – Bug 729609
trivial-httpd: flush after writing the port to stdout
Last modified: 2014-05-07 20:07:22 UTC
The option --port-file=- is most useful when the stdout of the daemon is programatically redirected and not going to a terminal. The flush-after-a-line behavior of stdout is specific to terminals, so we need an explicit flush.
Created attachment 275927 [details] [review] trivial-httpd: flush after writing the port to stdout
Review of attachment 275927 [details] [review]: Makes sense, thanks!a
Pushed, thanks for the review.