summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2015-09-23 16:11:51 -0700
committerAmitay Isaacs <amitay@samba.org>2015-11-18 07:12:50 +0100
commit3968e33acf6695558da93b368fc45fe7ac0a4bb0 (patch)
tree9178968ff766c4b56d86467073aa4f342399ef70 /ctdb
parent03b27bd13915b3ed4befe39216f62c15eb82dcf9 (diff)
downloadsamba-3968e33acf6695558da93b368fc45fe7ac0a4bb0.tar.gz
ctdb: Remove unused ctdb_set_process_name
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Wed Nov 18 07:12:50 CET 2015 on sn-devel-104
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/common/system.h1
-rw-r--r--ctdb/common/system_aix.c6
-rw-r--r--ctdb/common/system_freebsd.c6
-rw-r--r--ctdb/common/system_gnu.c6
-rw-r--r--ctdb/common/system_kfreebsd.c6
-rw-r--r--ctdb/common/system_linux.c12
6 files changed, 0 insertions, 37 deletions
diff --git a/ctdb/common/system.h b/ctdb/common/system.h
index 8df87cdf49b..ba11d20ad51 100644
--- a/ctdb/common/system.h
+++ b/ctdb/common/system.h
@@ -39,7 +39,6 @@ int ctdb_sys_read_tcp_packet(int s, void *private_data,
uint32_t *ack_seq, uint32_t *seq);
bool ctdb_sys_check_iface_exists(const char *iface);
int ctdb_get_peer_pid(const int fd, pid_t *peer_pid);
-int ctdb_set_process_name(const char *name);
/* From system_util.c */
diff --git a/ctdb/common/system_aix.c b/ctdb/common/system_aix.c
index 4c131060bfd..a380f1cb64c 100644
--- a/ctdb/common/system_aix.c
+++ b/ctdb/common/system_aix.c
@@ -379,9 +379,3 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid)
}
return ret;
}
-
-int ctdb_set_process_name(const char *name)
-{
- /* FIXME AIX: set_process_name not implemented */
- return -ENOSYS;
-}
diff --git a/ctdb/common/system_freebsd.c b/ctdb/common/system_freebsd.c
index 97ac06c489a..21a300b753e 100644
--- a/ctdb/common/system_freebsd.c
+++ b/ctdb/common/system_freebsd.c
@@ -375,9 +375,3 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid)
/* FIXME FreeBSD: get_peer_pid not implemented */
return 1;
}
-
-int ctdb_set_process_name(const char *name)
-{
- /* FIXME FreeBSD: set_process_name not implemented */
- return -ENOSYS;
-}
diff --git a/ctdb/common/system_gnu.c b/ctdb/common/system_gnu.c
index 84c5dd6cd20..aeed56c758f 100644
--- a/ctdb/common/system_gnu.c
+++ b/ctdb/common/system_gnu.c
@@ -368,9 +368,3 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid)
/* FIXME GNU/Hurd: get_peer_pid not implemented */
return 1;
}
-
-int ctdb_set_process_name(const char *name)
-{
- /* FIXME GNU/Hurd: set_process_name not implemented */
- return -ENOSYS;
-}
diff --git a/ctdb/common/system_kfreebsd.c b/ctdb/common/system_kfreebsd.c
index bd014109a58..b241aa8e6c2 100644
--- a/ctdb/common/system_kfreebsd.c
+++ b/ctdb/common/system_kfreebsd.c
@@ -368,9 +368,3 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid)
/* FIXME kFreeBSD: get_peer_pid not implemented */
return 1;
}
-
-int ctdb_set_process_name(const char *name)
-{
- /* FIXME kFreeBSD: set_process_name not implemented */
- return -ENOSYS;
-}
diff --git a/ctdb/common/system_linux.c b/ctdb/common/system_linux.c
index e7d9329ec5b..23c83d494ba 100644
--- a/ctdb/common/system_linux.c
+++ b/ctdb/common/system_linux.c
@@ -603,15 +603,3 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid)
}
return ret;
}
-
-/*
- * Set process name
- */
-int ctdb_set_process_name(const char *name)
-{
- char procname[16];
-
- strncpy(procname, name, 15);
- procname[15] = '\0';
- return prctl(PR_SET_NAME, (unsigned long)procname, 0, 0, 0);
-}