From c0288e0612187ecbfc4a81d071fd504ea8737b7a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 24 Mar 2012 20:17:08 +0100 Subject: lib/util: Remove obsolete sys_getpid() and sys_fork(). The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104 --- source3/smbd/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd/server.c') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index ef3f140f78..d3bcc48893 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -184,7 +184,7 @@ static void msg_inject_fault(struct messaging_context *msg, procid_str_static(&src), sig)); #endif - kill(sys_getpid(), sig); + kill(getpid(), sig); } #endif /* DEVELOPER */ @@ -484,7 +484,7 @@ static void smbd_accept_connection(struct tevent_context *ev, */ unique_id = serverid_get_random_unique_id(); - pid = sys_fork(); + pid = fork(); if (pid == 0) { NTSTATUS status = NT_STATUS_OK; @@ -545,7 +545,7 @@ static void smbd_accept_connection(struct tevent_context *ev, } if (pid < 0) { - DEBUG(0,("smbd_accept_connection: sys_fork() failed: %s\n", + DEBUG(0,("smbd_accept_connection: fork() failed: %s\n", strerror(errno))); } -- cgit