diff options
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 ab4fa305a..babd980e3 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -102,6 +102,9 @@ static void exit_fun(void) | |||
102 | 102 | ||
103 | void background(const char *pidfile) | 103 | void background(const char *pidfile) |
104 | { | 104 | { |
105 | #ifdef __uClinux__ | ||
106 | LOG(LOG_ERR, "Cannot background in uclinux (yet)"); | ||
107 | #else /* __uClinux__ */ | ||
105 | int pid_fd = -1; | 108 | int pid_fd = -1; |
106 | 109 | ||
107 | if (pidfile) { | 110 | if (pidfile) { |
@@ -131,6 +134,7 @@ void background(const char *pidfile) | |||
131 | lockf(pid_fd, F_UNLCK, 0); | 134 | lockf(pid_fd, F_UNLCK, 0); |
132 | close(pid_fd); | 135 | close(pid_fd); |
133 | } | 136 | } |
137 | #endif /* __uClinux__ */ | ||
134 | } | 138 | } |
135 | 139 | ||
136 | /* Signal handler */ | 140 | /* Signal handler */ |