summaryrefslogtreecommitdiff
path: root/libbb/pidfile.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-02 10:14:29 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-02 10:14:29 +0000
commit1caca34aa67b2f267d0049d17e5430ca9c58ac3f (patch)
treeb03a3218a2a96fa201bab6e7a58c9ad6b208c302 /libbb/pidfile.c
parentfc77eb54e791c7d636c20993ec81396052af84f0 (diff)
downloadbusybox-w32-1caca34aa67b2f267d0049d17e5430ca9c58ac3f.tar.gz
busybox-w32-1caca34aa67b2f267d0049d17e5430ca9c58ac3f.tar.bz2
busybox-w32-1caca34aa67b2f267d0049d17e5430ca9c58ac3f.zip
start_stop_daemon: NOMMU fixes, round 2 by Alex Landau <landau_alex@yahoo.com>
dhcpc: fixed "ifupdown + udhcpc_without_pidpile_creation" bug
Diffstat (limited to 'libbb/pidfile.c')
-rw-r--r--libbb/pidfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbb/pidfile.c b/libbb/pidfile.c
index 79c3108fc..50af91f4e 100644
--- a/libbb/pidfile.c
+++ b/libbb/pidfile.c
@@ -6,9 +6,11 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9
10/* Override ENABLE_FEATURE_PIDFILE */
11#define WANT_PIDFILE 1
9#include "libbb.h" 12#include "libbb.h"
10 13
11#if ENABLE_FEATURE_PIDFILE
12int write_pidfile(const char *path) 14int write_pidfile(const char *path)
13{ 15{
14 int pid_fd; 16 int pid_fd;
@@ -26,4 +28,3 @@ int write_pidfile(const char *path)
26 close(pid_fd); 28 close(pid_fd);
27 return 1; 29 return 1;
28} 30}
29#endif