git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdb: Remove unused ctdb_set_process_name
[obnox/samba/samba-obnox.git]
/
ctdb
/
common
/
system_linux.c
diff --git
a/ctdb/common/system_linux.c
b/ctdb/common/system_linux.c
index e7d9329ec5bdb4d44130d69fc3544bca7a8d1670..23c83d494ba7bd370c626a28421baf38dd8f266a 100644
(file)
--- 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);
-}