X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=networking%2Fudhcp%2Fpidfile.c;h=148b07b342a42ff67457b9cc5ab1cda4469174bc;hb=e40c04b82695c1cde8ad9ed1e2aa1756463d73a7;hp=2e0c7533ea42169174b46ea899d8aa24a212754e;hpb=aff114c33d2b8879233fa513e6d760d0ef99b632;p=oweals%2Fbusybox.git diff --git a/networking/udhcp/pidfile.c b/networking/udhcp/pidfile.c index 2e0c7533e..148b07b34 100644 --- a/networking/udhcp/pidfile.c +++ b/networking/udhcp/pidfile.c @@ -1,3 +1,4 @@ +/* vi: set sw=4 ts=4: */ /* pidfile.c * * Functions to assist in the writing and removing of pidfiles. @@ -26,8 +27,8 @@ #include #include -#include "pidfile.h" #include "common.h" +#include "pidfile.h" static char *saved_pidfile; @@ -44,7 +45,7 @@ int pidfile_acquire(const char *pidfile) pid_fd = open(pidfile, O_CREAT | O_WRONLY, 0644); if (pid_fd < 0) { - LOG(LOG_ERR, "Unable to open pidfile %s: %m\n", pidfile); + bb_perror_msg("Unable to open pidfile %s", pidfile); } else { lockf(pid_fd, F_LOCK, 0); if (!saved_pidfile)