After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729609 - trivial-httpd: flush after writing the port to stdout
trivial-httpd: flush after writing the port to stdout
Status: RESOLVED FIXED
Product: ostree
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: OSTree maintainer(s)
OSTree maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-05-05 23:02 UTC by Owen Taylor
Modified: 2014-05-07 20:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
trivial-httpd: flush after writing the port to stdout (1.38 KB, patch)
2014-05-05 23:03 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2014-05-05 23:02:57 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.
Comment 1 Owen Taylor 2014-05-05 23:03:00 UTC
Created attachment 275927 [details] [review]
trivial-httpd: flush after writing the port to stdout
Comment 2 Colin Walters 2014-05-06 00:00:09 UTC
Review of attachment 275927 [details] [review]:

Makes sense, thanks!a
Comment 3 Owen Taylor 2014-05-07 20:07:10 UTC
Pushed, thanks for the review.