From faa7ae47d675c3007e53737eef70c34675e952ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Sun, 12 Dec 2010 12:33:08 +0100 Subject: [PATCH] s4:smbd/process*.c - fix PID warnings on Solaris MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Sun Dec 12 13:21:13 CET 2010 on sn-devel-104 --- source4/smbd/process_onefork.c | 2 +- source4/smbd/process_prefork.c | 4 ++-- source4/smbd/process_standard.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source4/smbd/process_onefork.c b/source4/smbd/process_onefork.c index 5194e1bda63..59e583dca37 100644 --- a/source4/smbd/process_onefork.c +++ b/source4/smbd/process_onefork.c @@ -111,7 +111,7 @@ static void onefork_new_task(struct tevent_context *ev, smb_panic("Failed to re-initialise tevent after fork"); } - setproctitle("task %s server_id[%d]", service_name, pid); + setproctitle("task %s server_id[%d]", service_name, (int)pid); onefork_reload_after_fork(); diff --git a/source4/smbd/process_prefork.c b/source4/smbd/process_prefork.c index 71c1c57162a..66222af63f7 100644 --- a/source4/smbd/process_prefork.c +++ b/source4/smbd/process_prefork.c @@ -122,7 +122,7 @@ static void prefork_new_task(struct tevent_context *ev, is not associated with this new connection */ talloc_free(ev); - setproctitle("task %s server_id[%d]", service_name, pid); + setproctitle("task %s server_id[%d]", service_name, (int)pid); prefork_reload_after_fork(); @@ -151,7 +151,7 @@ static void prefork_new_task(struct tevent_context *ev, return; } else { pid = getpid(); - setproctitle("task %s server_id[%d]", service_name, pid); + setproctitle("task %s server_id[%d]", service_name, (int)pid); prefork_reload_after_fork(); diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c index 99e815a160b..c5cd9fd5b8e 100644 --- a/source4/smbd/process_standard.c +++ b/source4/smbd/process_standard.c @@ -133,7 +133,7 @@ static void standard_accept_connection(struct tevent_context *ev, s = socket_get_my_addr(sock2, ev); if (s && c) { setproctitle("conn c[%s:%u] s[%s:%u] server_id[%d]", - c->addr, c->port, s->addr, s->port, pid); + c->addr, c->port, s->addr, s->port, (int)pid); } talloc_free(c); talloc_free(s); @@ -186,7 +186,7 @@ static void standard_new_task(struct tevent_context *ev, /* Ensure that the forked children do not expose identical random streams */ set_need_random_reseed(); - setproctitle("task %s server_id[%d]", service_name, pid); + setproctitle("task %s server_id[%d]", service_name, (int)pid); /* setup this new task. Cluster ID is PID based for this process modal */ new_task(ev, lp_ctx, cluster_id(pid, 0), private_data); -- 2.11.4.GIT