Commit 97699eff authored by Gonglei's avatar Gonglei Committed by Michael Tokarev

os-posix: remove confused errno

If we get inside the 'else if (status == 1)' conditional,
then we know that read() succeeded, and therefore errno is
unspecified. Printing strerror(errno) on a random value
is not helpful.

Cc: Eric Blake <>
Signed-off-by: default avatarGonglei <>
Reviewed-by: default avatarPaolo Bonzini <>
Signed-off-by: default avatarMichael Tokarev <>
parent 63ce8e15
......@@ -226,7 +226,7 @@ void os_daemonize(void)
else if (status == 1) {
fprintf(stderr, "Could not acquire pidfile: %s\n", strerror(errno));
fprintf(stderr, "Could not acquire pidfile\n");
} else {
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