From: Sami Kerola Date: Sat, 21 Nov 2020 22:12:36 +0000 (+0000) Subject: uuidd: make timeout to take effect when debug is not defined X-Git-Tag: v2.37-rc1~268^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f187035d73aba923fd587b3cc7abf3b033f0ccb8;p=thirdparty%2Futil-linux.git uuidd: make timeout to take effect when debug is not defined The trailing comma made code to compile without issues, but meant all_done() was called only when --debug was in defined in command-line. Fixes: 3d6250e96b0041a3cbe2f8dd3e746cca5d6ac121 Signed-off-by: Sami Kerola --- diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 6b584ddafc..74b333a84c 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -450,7 +450,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path, } if (ret == 0) { /* true when poll() times out */ if (uuidd_cxt->debug) - fprintf(stderr, _("timeout [%d sec]\n"), uuidd_cxt->timeout), + fprintf(stderr, _("timeout [%d sec]\n"), uuidd_cxt->timeout); all_done(uuidd_cxt, EXIT_SUCCESS); } if (pfd[POLLFD_SIGNAL].revents != 0)