daemon: pass "detach" flag to daemonize()

This way, we don't have to pass the full "Options" object to
daemonize().
This commit is contained in:
Max Kellermann
2009-01-18 18:29:30 +01:00
parent bfcaecabbd
commit 9c93249412
3 changed files with 7 additions and 6 deletions

View File

@@ -19,7 +19,7 @@
#ifndef DAEMON_H
#define DAEMON_H
#include "cmdline.h"
#include <stdbool.h>
void
daemonize_init(const char *user, const char *pidfile);
@@ -47,6 +47,6 @@ void
daemonize_set_user(void);
void
daemonize(Options *options);
daemonize(bool detach);
#endif