summaryrefslogtreecommitdiff
path: root/bsd-setproctitle.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2000-11-17 03:47:20 +0000
committerBen Lindstrom <mouring@eviladmin.org>2000-11-17 03:47:20 +0000
commit49a79c09762613f29601ef2470d13952168021be (patch)
tree140539420c10c5b358481cadcec495a5a41103fd /bsd-setproctitle.c
parentbaaa2c05dd789bdce64fa7eb5697a5f969d68288 (diff)
- (stevek) Reworked progname support.
- (bal) Misplaced #include "includes.h" in bsd-setproctitle.c. Patch by Shinichi Maruyama <marya@st.jip.co.jp> I assume the progname patch was finished. I believe stevek is on vacation, but it passes compiling under Linux and NeXTStep.
Diffstat (limited to 'bsd-setproctitle.c')
-rw-r--r--bsd-setproctitle.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bsd-setproctitle.c b/bsd-setproctitle.c
index 51a642e85..38eca9ad7 100644
--- a/bsd-setproctitle.c
+++ b/bsd-setproctitle.c
@@ -38,10 +38,10 @@
38static char rcsid[] = "$OpenBSD: setproctitle.c,v 1.7 1999/02/25 22:10:12 art Exp $"; 38static char rcsid[] = "$OpenBSD: setproctitle.c,v 1.7 1999/02/25 22:10:12 art Exp $";
39#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
40 40
41#ifndef HAVE_SETPROCTITLE
42
43#include "includes.h" 41#include "includes.h"
44 42
43#ifndef HAVE_SETPROCTITLE
44
45#define SPT_NONE 0 45#define SPT_NONE 0
46#define SPT_PSTAT 1 46#define SPT_PSTAT 1
47 47
@@ -56,11 +56,7 @@ static char rcsid[] = "$OpenBSD: setproctitle.c,v 1.7 1999/02/25 22:10:12 art Ex
56 56
57#define MAX_PROCTITLE 2048 57#define MAX_PROCTITLE 2048
58 58
59#ifdef HAVE___PROGNAME
60extern char *__progname; 59extern char *__progname;
61#else
62static const char *__progname = "sshd";
63#endif /* HAVE___PROGNAME */
64 60
65/* 61/*
66 * Set Process Title (SPT) defines. Modeled after sendmail's 62 * Set Process Title (SPT) defines. Modeled after sendmail's