summaryrefslogtreecommitdiff
path: root/source4/smbd/process_model.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-09 17:48:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:56:49 -0500
commit651ca6553edadb2b97339fd3c112fdb6ef6c08bc (patch)
tree240f124aa3dcf08304c7f4bed6c2e0bd22ed83ed /source4/smbd/process_model.h
parent60823d1878563c398373ff2c761dd91a588af3b5 (diff)
downloadsamba-651ca6553edadb2b97339fd3c112fdb6ef6c08bc.tar.gz
samba-651ca6553edadb2b97339fd3c112fdb6ef6c08bc.tar.bz2
samba-651ca6553edadb2b97339fd3c112fdb6ef6c08bc.zip
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)
Diffstat (limited to 'source4/smbd/process_model.h')
-rw-r--r--source4/smbd/process_model.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/smbd/process_model.h b/source4/smbd/process_model.h
index 4080d2d4b6..d525ce9cdd 100644
--- a/source4/smbd/process_model.h
+++ b/source4/smbd/process_model.h
@@ -51,9 +51,11 @@ struct model_ops {
void (*)(struct event_context *, uint32_t, void *),
void *);
- /* function to terminate a task */
+ /* function to terminate a connection or task */
void (*terminate)(struct event_context *, const char *reason);
+ /* function to set a title for the connection or task */
+ void (*set_title)(struct event_context *, const char *title);
};
/* this structure is used by modules to determine the size of some critical types */