From 1f7eac907a04361abf89b12ab03284cf57fec0f5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 22 Aug 2012 13:30:22 +0200 Subject: s3:lib: remove unused processes_exist() metze --- source3/lib/util.c | 70 ------------------------------------------------------ 1 file changed, 70 deletions(-) (limited to 'source3/lib/util.c') 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