artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
921a78c
)
do not whack pid file if run -d; hwr@pilhuhn.de
author
deraadt
<deraadt@openbsd.org>
Fri, 4 Apr 1997 16:57:01 +0000
(16:57 +0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 4 Apr 1997 16:57:01 +0000
(16:57 +0000)
usr.sbin/syslogd/syslogd.c
patch
|
blob
|
history
diff --git
a/usr.sbin/syslogd/syslogd.c
b/usr.sbin/syslogd/syslogd.c
index
84fec5d
..
68d5b18
100644
(file)
--- a/
usr.sbin/syslogd/syslogd.c
+++ b/
usr.sbin/syslogd/syslogd.c
@@
-306,10
+306,12
@@
main(argc, argv)
}
/* tuck my process id away */
- fp = fopen(PidFile, "w");
- if (fp != NULL) {
- fprintf(fp, "%d\n", getpid());
- (void) fclose(fp);
+ if (!Debug) {
+ fp = fopen(PidFile, "w");
+ if (fp != NULL) {
+ fprintf(fp, "%d\n", getpid());
+ (void) fclose(fp);
+ }
}
dprintf("off & running....\n");