ctdb: Remove unused ctdb_set_process_name
authorChristof Schmitt <cs@samba.org>
Wed, 23 Sep 2015 23:11:51 +0000 (16:11 -0700)
committerAmitay Isaacs <amitay@samba.org>
Wed, 18 Nov 2015 06:12:50 +0000 (07:12 +0100)
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

ctdb/common/system.h
ctdb/common/system_aix.c
ctdb/common/system_freebsd.c
ctdb/common/system_gnu.c
ctdb/common/system_kfreebsd.c
ctdb/common/system_linux.c

index 8df87cdf49b56a88fa0c704b80866592ef685eaa..ba11d20ad515ec77d7ae1f4adc36181586e5463f 100644 (file)
@@ -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 */
 
index 4c131060bfd56f5a64ab408947c0ca0c038e2607..a380f1cb64c897893c73b9219b8cdbb60b7ba395 100644 (file)
@@ -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;
-}
index 97ac06c489aee5daa10bc699f012de817160b3f3..21a300b753e19c81e5323328172da0d6daf15821 100644 (file)
@@ -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;
-}
index 84c5dd6cd20130b731b034cf22d8a556bc70bdf9..aeed56c758f027be82556370777402206e467add 100644 (file)
@@ -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;
-}
index bd014109a5899e232c2e0dbe1d61259c3547edb4..b241aa8e6c22d69aa33a8baa56368762f99b4c5b 100644 (file)
@@ -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;
-}
index e7d9329ec5bdb4d44130d69fc3544bca7a8d1670..23c83d494ba7bd370c626a28421baf38dd8f266a 100644 (file)
@@ -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);
-}