summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/id.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-08-16 09:07:23 +0000
committerbrian <brian@FreeBSD.org>2000-08-16 09:07:23 +0000
commita7aa2e6cdb6c5521e4c444686f843a5ec015f6c2 (patch)
treef92a54d342123c82413213bce4839e5b3df8ae48 /usr.sbin/ppp/id.c
parent724f61b07d51e05677c46e23e943f24eac26cf11 (diff)
downloadFreeBSD-src-a7aa2e6cdb6c5521e4c444686f843a5ec015f6c2.zip
FreeBSD-src-a7aa2e6cdb6c5521e4c444686f843a5ec015f6c2.tar.gz
setproctitle() doesn't need to be called with root privs, so move
it from id.c into defs.c
Diffstat (limited to 'usr.sbin/ppp/id.c')
-rw-r--r--usr.sbin/ppp/id.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/usr.sbin/ppp/id.c b/usr.sbin/ppp/id.c
index 7f99a8a..8950239 100644
--- a/usr.sbin/ppp/id.c
+++ b/usr.sbin/ppp/id.c
@@ -38,7 +38,6 @@
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
-#include <stdlib.h> /* setproctitle() under OpenBSD (+NetBSD ?)*/
#include <string.h>
#include <sysexits.h>
#if defined(__FreeBSD__) && !defined(NOKLDLOAD)
@@ -273,23 +272,6 @@ ID0kill(pid_t pid, int sig)
return result;
}
-void
-ID0setproctitle(const char *title)
-{
- ID0set0();
- if (title == NULL) {
- setproctitle(NULL);
- log_Printf(LogID0, "setproctitle(NULL)\n");
- } else {
- if (title[0] == '-' && title[1] != '\0')
- setproctitle("-%s", title + 1);
- else
- setproctitle("%s", title);
- log_Printf(LogID0, "setproctitle(\"%%s\", \"%s\")\n", title);
- }
- ID0setuser();
-}
-
#if defined(__FreeBSD__) && !defined(NOKLDLOAD)
int
ID0kldload(const char *dev)
OpenPOWER on IntegriCloud