Commit 94b09be2 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

cr_service(): don't use pr_perror()

Since sd_listen_fds() doesn't set errno when returning a value > 1,
it doesn't make sense to use pr_perror(). Use pr_err() instead.

While at it, remove the period from the log message.

[v2: fix function names]
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 0dfb0776
......@@ -349,7 +349,7 @@ int cr_service(bool daemon_mode)
n = sd_listen_fds(0);
if (n > 1) {
pr_perror("Too many file descriptors (%d) recieved.", n);
pr_err("Too many file descriptors (%d) recieved", n);
goto err;
} else if (n == 1)
server_fd = SD_LISTEN_FDS_START + 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment