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: 3d6250e96b
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2020-11-21 22:12:36 +00:00
parent 0453925535
commit f187035d73
No known key found for this signature in database
GPG Key ID: 0D46FEF7E61DBB46
1 changed files with 1 additions and 1 deletions

View File

@ -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)