diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-09-24 09:20:46 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-09-24 23:06:07 +0200 |
commit | fd8d4ec34785e71de3f8458222d196d454d0e723 (patch) | |
tree | 4d2976bb833a3f7e46e43a26ba9841029ebfcbf2 /lib/replace/replace.c | |
parent | 6641d76562db10e6289c5e819b1296d8f6df37bf (diff) | |
download | samba-fd8d4ec34785e71de3f8458222d196d454d0e723.tar.gz samba-fd8d4ec34785e71de3f8458222d196d454d0e723.tar.xz samba-fd8d4ec34785e71de3f8458222d196d454d0e723.zip |
replace: Support setproctitle().
This uses the setproctitle() from libc, libsetproctitle or libbsd.
If none is available it provides a dummy implementation.
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r-- | lib/replace/replace.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c index ebfe04d5d34..a0aa788658e 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -894,3 +894,10 @@ int rep_usleep(useconds_t sec) return 0; } #endif /* HAVE_USLEEP */ + +#ifndef HAVE_SETPROCTITLE +void rep_setproctitle(const char *fmt, ...) +{ + return 0; +} +#endif |