diff options
author | Simo Sorce <idra@samba.org> | 2008-11-20 08:16:52 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-11-20 08:21:05 -0500 |
commit | edd05ae9d671c9209d630c68a1aff5c5cca8ee32 (patch) | |
tree | df9e496fc18e35f3216cb4380ce252f14676a01e /server/util/util.h | |
parent | ef946eebf0520607c1c7c72c80b51de63d9d941e (diff) | |
download | sssd-edd05ae9d671c9209d630c68a1aff5c5cca8ee32.tar.gz sssd-edd05ae9d671c9209d630c68a1aff5c5cca8ee32.tar.xz sssd-edd05ae9d671c9209d630c68a1aff5c5cca8ee32.zip |
Start conversion from a fork() and live to a fork()/exec() model.
To start the dameon now you need to pass the option -s monitor
Still have some problems communicating with children.
Diffstat (limited to 'server/util/util.h')
-rw-r--r-- | server/util/util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/util/util.h b/server/util/util.h index bb5526e48..897e35419 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -6,16 +6,17 @@ #include "replace.h" #include "talloc.h" +extern const char *debug_prg_name; extern int debug_level; void debug_fn(const char *format, ...); #define DEBUG(level, body) do { \ if (level <= debug_level) { \ - debug_fn("%s[%s]: ", __location__, __FUNCTION__); \ + debug_fn("[%s] [%s] (%d): ", \ + debug_prg_name, __FUNCTION__, level); \ debug_fn body; \ } \ } while(0); -#define DEBUGADD(level, body) #ifndef discard_const #define discard_const(ptr) ((void *)((uintptr_t)(ptr))) @@ -35,6 +36,7 @@ void debug_fn(const char *format, ...); /* from become_daemon.c */ void become_daemon(bool Fork); +int pidfile(const char *path, const char *name); /* from signal.c */ #include <signal.h> |