From 651ca6553edadb2b97339fd3c112fdb6ef6c08bc Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 9 Mar 2006 17:48:41 +0000 Subject: r14079: I just found the setproctitle library from alt linux:-) - add set_title hook to the process models - use setproctitle library in process_model standard if available - the the title for the task servers and on connections metze (This used to be commit 526f20bbecc9bbd607595637c15fc4001d3f0c70) --- source4/smbd/process_single.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/smbd/process_single.c') diff --git a/source4/smbd/process_single.c b/source4/smbd/process_single.c index 3e60b6bd5b..1ca2718454 100644 --- a/source4/smbd/process_single.c +++ b/source4/smbd/process_single.c @@ -88,12 +88,18 @@ static void single_terminate(struct event_context *ev, const char *reason) DEBUG(2,("single_terminate: reason[%s]\n",reason)); } +/* called to set a title of a task or connection */ +static void single_set_title(struct event_context *ev, const char *title) +{ +} + static const struct model_ops single_ops = { .name = "single", .model_init = single_model_init, .new_task = single_new_task, .accept_connection = single_accept_connection, .terminate = single_terminate, + .set_title = single_set_title, }; /* -- cgit