1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-daemon: Call setproctitle_init()

Commit 19c82c19c0 changed the behaviour
of prctl_set_comment() so it now calls setproctitle(3bsd) by default.

In some Linux distributions (e.g. Rocky Linux 8.8), this results in
messages like this spamming the logs:

  ctdbd: setproctitle not initialized, please either call setproctitle_init() or link against libbsd-ctor.

Most Samba daemons seem to call setproctitle_init(), so do it here.

In the longer term CTDB should also switch to using lib/util's
process_set_title(), like the rest of Samba, for more flexible process
names.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15479

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Sep 21 00:46:50 UTC 2023 on atb-devel-224
This commit is contained in:
Martin Schwenke 2023-09-19 17:47:36 +10:00 committed by Martin Schwenke
parent 3481bbfede
commit 8b9f464420

View File

@ -170,6 +170,8 @@ int main(int argc, const char *argv[])
const char *test_mode; const char *test_mode;
bool ok; bool ok;
setproctitle_init(argc, discard_const(argv), environ);
/* /*
* Basic setup * Basic setup
*/ */