commit | 60aaa7e13c1536a04fb23843b135f3b9276dba49 | [log] [tgz] |
---|---|---|
author | Denton Gentry <dgentry@google.com> | Sat Jan 24 22:21:10 2015 -0800 |
committer | Denton Gentry <dgentry@google.com> | Sat Jan 24 22:21:10 2015 -0800 |
tree | be4fcf5a0a318bdfca9f3f707d5ae839fa7a4856 | |
parent | fbde829df87c3345aef29d636d08d330e3e13a98 [diff] |
Set stdout to unbuffered, for better logging. Change-Id: I6a3749eeedb6975b79a82295528312b6ec08bb4d
diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 04cc982..7934132 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c
@@ -81,6 +81,8 @@ umask(022); /* known umask, create leases and pid files as 0644 */ + setvbuf(stdout, NULL, _IONBF, 0); + rand_init(); /* Must precede read_opts() */ read_opts(argc, argv, compile_opts);