diff options
author | Russ Dill | 2003-12-15 22:11:26 +0000 |
---|---|---|
committer | Russ Dill | 2003-12-15 22:11:26 +0000 |
commit | 62419df95cd504bf5823a35194360dc4f6aa86c6 (patch) | |
tree | 72865f8ca59214680c61d481f860115592f09a5c /networking/udhcp/common.c | |
parent | 4a9e34c14867430141c1e510847df0ec91060a5d (diff) | |
download | busybox-62419df95cd504bf5823a35194360dc4f6aa86c6.zip busybox-62419df95cd504bf5823a35194360dc4f6aa86c6.tar.gz |
make udhcp work under uclinux, to an extent
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index ab4fa30..babd980 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c @@ -102,6 +102,9 @@ static void exit_fun(void) void background(const char *pidfile) { +#ifdef __uClinux__ + LOG(LOG_ERR, "Cannot background in uclinux (yet)"); +#else /* __uClinux__ */ int pid_fd = -1; if (pidfile) { @@ -131,6 +134,7 @@ void background(const char *pidfile) lockf(pid_fd, F_UNLCK, 0); close(pid_fd); } +#endif /* __uClinux__ */ } /* Signal handler */ |