From: Roy Marples Date: Tue, 13 May 2008 20:25:22 +0000 (+0000) Subject: Use better error messages. X-Git-Tag: v4.0.2~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bae375892a222548d648e2271ea2e8ac2b1b5973;p=thirdparty%2Fdhcpcd.git Use better error messages. --- diff --git a/client.c b/client.c index 960b6905..af0d8169 100644 --- a/client.c +++ b/client.c @@ -191,7 +191,7 @@ daemonise(struct if_state *state, const struct options *options) switch (pid = vfork()) { case -1: - logger(LOG_ERR, "vfork: %s", strerror (errno)); + logger(LOG_ERR, "vfork: %s", strerror(errno)); _exit(EXIT_FAILURE); case 0: signal_reset(); diff --git a/configure.c b/configure.c index 0590202b..2db43978 100644 --- a/configure.c +++ b/configure.c @@ -109,7 +109,11 @@ exec_script(const char *script, const char *iface, const char *reason, switch (pid) { case -1: +#ifdef THERE_IS_NO_FORK + logger(LOG_ERR, "vfork: %s", strerror(errno)); +#else logger(LOG_ERR, "fork: %s", strerror(errno)); +#endif ret = -1; break; case 0: