mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
winbindd: Use process_set_title() instead of setproctitle()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
1b62dfa68d
commit
096295a6fe
@ -53,6 +53,7 @@
|
||||
#include "lib/global_contexts.h"
|
||||
#include "source3/lib/substitute.h"
|
||||
#include "winbindd_traceid.h"
|
||||
#include "lib/util/util_process.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
@ -257,7 +258,7 @@ static void winbind_msg_validate_cache(struct messaging_context *msg_ctx,
|
||||
/* install default SIGCHLD handler: validation code uses fork/waitpid */
|
||||
CatchSignal(SIGCHLD, SIG_DFL);
|
||||
|
||||
setproctitle("validate cache child");
|
||||
process_set_title("wb: check cache", "validate cache child");
|
||||
|
||||
ret = (uint8_t)winbindd_validate_cache_nobackup();
|
||||
DEBUG(10, ("winbindd_msg_validata_cache: got return value %d\n", ret));
|
||||
|
@ -48,6 +48,7 @@
|
||||
#include "libcli/auth/netlogon_creds_cli.h"
|
||||
#include "../lib/util/pidfile.h"
|
||||
#include "librpc/gen_ndr/ndr_winbind_c.h"
|
||||
#include "lib/util/util_process.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
@ -1762,9 +1763,9 @@ static bool fork_domain_child(struct winbindd_child *child)
|
||||
}
|
||||
|
||||
if (child_domain != NULL) {
|
||||
setproctitle("domain child [%s]", child_domain->name);
|
||||
process_set_title("wb[%s]", "domain child [%s]", child_domain->name);
|
||||
} else if (is_idmap_child(child)) {
|
||||
setproctitle("idmap child");
|
||||
process_set_title("wb-idmap", "idmap child");
|
||||
}
|
||||
|
||||
/* Handle online/offline messages. */
|
||||
|
Loading…
Reference in New Issue
Block a user