Skip to content

Commit

Permalink
winbindd: Use process_set_title() instead of setproctitle()
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Boehme <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
slowfranklin authored and jrasamba committed Dec 14, 2022
1 parent 1b62dfa commit 096295a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion source3/winbindd/winbindd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
Expand Down
5 changes: 3 additions & 2 deletions source3/winbindd/winbindd_dual.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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. */
Expand Down

0 comments on commit 096295a

Please sign in to comment.