diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-07 16:32:30 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-07 16:32:30 +0100 |
commit | 2bd5b4e9a0442102ab937ed771b2c11142afb744 (patch) | |
tree | 55a3d7b650993ce0f34ec12b28da344957fa9987 | |
parent | 4cae044b436a842e0575c3b6787729fb436fd04c (diff) | |
download | busybox-w32-2bd5b4e9a0442102ab937ed771b2c11142afb744.tar.gz busybox-w32-2bd5b4e9a0442102ab937ed771b2c11142afb744.tar.bz2 busybox-w32-2bd5b4e9a0442102ab937ed771b2c11142afb744.zip |
udhcp: do not setlinebuf(stdout), we don't print to stdout anymore
Since bb_info_msg() was eliminated type of buffering on stdout is not important
function old new delta
udhcpd_main 1463 1451 -12
udhcpc_main 2735 2723 -12
setlinebuf 19 - -19
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/2 up/down: 0/-43) Total: -43 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 2 | ||||
-rw-r--r-- | networking/udhcp/dhcpc.c | 2 | ||||
-rw-r--r-- | networking/udhcp/dhcpd.c | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index 07a8b11c1..35c99e89c 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -1201,8 +1201,6 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1201 | 1201 | ||
1202 | /* Make sure fd 0,1,2 are open */ | 1202 | /* Make sure fd 0,1,2 are open */ |
1203 | bb_sanitize_stdio(); | 1203 | bb_sanitize_stdio(); |
1204 | /* Equivalent of doing a fflush after every \n */ | ||
1205 | setlinebuf(stdout); | ||
1206 | /* Create pidfile */ | 1204 | /* Create pidfile */ |
1207 | write_pidfile(client_config.pidfile); | 1205 | write_pidfile(client_config.pidfile); |
1208 | /* Goes to stdout (unless NOMMU) and possibly syslog */ | 1206 | /* Goes to stdout (unless NOMMU) and possibly syslog */ |
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 385fc4998..35694fbe3 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -1386,8 +1386,6 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) | |||
1386 | 1386 | ||
1387 | /* Make sure fd 0,1,2 are open */ | 1387 | /* Make sure fd 0,1,2 are open */ |
1388 | bb_sanitize_stdio(); | 1388 | bb_sanitize_stdio(); |
1389 | /* Equivalent of doing a fflush after every \n */ | ||
1390 | setlinebuf(stdout); | ||
1391 | /* Create pidfile */ | 1389 | /* Create pidfile */ |
1392 | write_pidfile(client_config.pidfile); | 1390 | write_pidfile(client_config.pidfile); |
1393 | /* Goes to stdout (unless NOMMU) and possibly syslog */ | 1391 | /* Goes to stdout (unless NOMMU) and possibly syslog */ |
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c index ff7450739..093239536 100644 --- a/networking/udhcp/dhcpd.c +++ b/networking/udhcp/dhcpd.c | |||
@@ -856,8 +856,6 @@ int udhcpd_main(int argc UNUSED_PARAM, char **argv) | |||
856 | 856 | ||
857 | /* Make sure fd 0,1,2 are open */ | 857 | /* Make sure fd 0,1,2 are open */ |
858 | bb_sanitize_stdio(); | 858 | bb_sanitize_stdio(); |
859 | /* Equivalent of doing a fflush after every \n */ | ||
860 | setlinebuf(stdout); | ||
861 | 859 | ||
862 | /* Create pidfile */ | 860 | /* Create pidfile */ |
863 | write_pidfile(server_config.pidfile); | 861 | write_pidfile(server_config.pidfile); |