summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-20 16:58:13 +0000
committerRoy Marples <roy@marples.name>2007-10-20 16:58:13 +0000
commitcfbd159f4963a70033562a1ac16c7d0d932497ab (patch)
tree6cdf887e6464e3e12796c41797cf6b1ec28d07d3 /common.h
parent6b37baaad11ddf85817aaaea5aaac4259b77866f (diff)
downloaddhcpcd-cfbd159f4963a70033562a1ac16c7d0d932497ab.tar.xz
Write the pidfile before we fork so we can easily be stopped by other processes.
Diffstat (limited to 'common.h')
-rw-r--r--common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.h b/common.h
index 1c817087..87bce782 100644
--- a/common.h
+++ b/common.h
@@ -40,6 +40,7 @@ void srandomdev (void);
void close_fds (void);
int get_time (struct timeval *tp);
time_t uptime (void);
+void writepid (int fd, pid_t pid);
void *xmalloc (size_t size);
char *xstrdup (const char *str);