diff options
author | Denis Vlasenko | 2006-10-20 13:28:22 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-20 13:28:22 +0000 |
commit | e1a0d486e4804eae098571f1a6788394c2ee51ae (patch) | |
tree | c6f3435738900c8d53832eb919b1b2c3d524f2e5 /networking/udhcp/pidfile.c | |
parent | dd2982882bb192ea757f32514bc2ea0bc96f5ba0 (diff) | |
download | busybox-e1a0d486e4804eae098571f1a6788394c2ee51ae.zip busybox-e1a0d486e4804eae098571f1a6788394c2ee51ae.tar.gz |
message string changes, mostly for consistency, also -32 bytes in .rodata
Diffstat (limited to 'networking/udhcp/pidfile.c')
-rw-r--r-- | networking/udhcp/pidfile.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/networking/udhcp/pidfile.c b/networking/udhcp/pidfile.c index 148b07b..6673c95 100644 --- a/networking/udhcp/pidfile.c +++ b/networking/udhcp/pidfile.c @@ -45,7 +45,7 @@ int pidfile_acquire(const char *pidfile) pid_fd = open(pidfile, O_CREAT | O_WRONLY, 0644); if (pid_fd < 0) { - bb_perror_msg("Unable to open pidfile %s", pidfile); + bb_perror_msg("unable to open pidfile %s", pidfile); } else { lockf(pid_fd, F_LOCK, 0); if (!saved_pidfile) @@ -63,14 +63,11 @@ void pidfile_write_release(int pid_fd) if (pid_fd < 0) return; - if ((out = fdopen(pid_fd, "w")) != NULL) { + out = fdopen(pid_fd, "w"); + if (out) { fprintf(out, "%d\n", getpid()); fclose(out); } lockf(pid_fd, F_UNLCK, 0); close(pid_fd); } - - - - |