From: Stefan Metzmacher Date: Wed, 22 Aug 2012 11:30:22 +0000 (+0200) Subject: s3:lib: remove unused processes_exist() X-Git-Tag: samba-4.0.0beta7~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f7eac907a04361abf89b12ab03284cf57fec0f5;p=thirdparty%2Fsamba.git s3:lib: remove unused processes_exist() metze --- diff --git a/source3/lib/util.c b/source3/lib/util.c index 5ca2a7f9313..5ffce583db4 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -707,81 +707,11 @@ char *automount_lookup(TALLOC_CTX *ctx, const char *user_name) #endif /* WITH_NISPLUS_HOME */ #endif -/**************************************************************************** - Check if a process exists. Does this work on all unixes? -****************************************************************************/ - bool process_exists(const struct server_id pid) { return serverid_exists(&pid); } -bool processes_exist(const struct server_id *pids, int num_pids, - bool *results) -{ - struct server_id *remote_pids = NULL; - int *remote_idx = NULL; - bool *remote_results = NULL; - int i, num_remote_pids; - bool result = false; - - remote_pids = talloc_array(talloc_tos(), struct server_id, num_pids); - if (remote_pids == NULL) { - goto fail; - } - remote_idx = talloc_array(talloc_tos(), int, num_pids); - if (remote_idx == NULL) { - goto fail; - } - remote_results = talloc_array(talloc_tos(), bool, num_pids); - if (remote_results == NULL) { - goto fail; - } - - num_remote_pids = 0; - - for (i=0; i