From: Gonglei Date: Fri, 26 Sep 2014 08:14:31 +0000 (+0800) Subject: os-posix: remove confused errno X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~547^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97699eff3afc9c0dda865882415f81584b926727;p=sdk%2Femulator%2Fqemu.git 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: Gonglei Reviewed-by: Paolo Bonzini Signed-off-by: Michael Tokarev --- diff --git a/os-posix.c b/os-posix.c index f0564ef..e31a099 100644 --- a/os-posix.c +++ b/os-posix.c @@ -226,7 +226,7 @@ void os_daemonize(void) exit(1); } else if (status == 1) { - fprintf(stderr, "Could not acquire pidfile: %s\n", strerror(errno)); + fprintf(stderr, "Could not acquire pidfile\n"); exit(1); } else { exit(0);