Browse Source

correctly die

master
parent
commit
1e53d3f648
  1. 10
      oidentd/oidentd.patch

10
oidentd/oidentd.patch

@ -1,6 +1,6 @@
Index: src/oidentd.h
--- src/oidentd.h.orig 2003-07-11 16:11:25.000000000 +0200
+++ src/oidentd.h 2003-11-02 12:46:08.000000000 +0100
+++ src/oidentd.h 2003-11-02 12:57:59.000000000 +0100
@@ -33,6 +33,12 @@
#define UPREFIX "user"
@ -16,8 +16,8 @@ Index: src/oidentd.h
Index: src/oidentd.c
--- src/oidentd.c.orig 2003-04-24 02:03:54.000000000 +0200
+++ src/oidentd.c 2003-11-02 12:47:42.000000000 +0100
@@ -97,6 +97,16 @@
+++ src/oidentd.c 2003-11-02 12:58:23.000000000 +0100
@@ -97,6 +97,18 @@
exit(-1);
}
@ -25,8 +25,10 @@ Index: src/oidentd.c
+ pid_t pid;
+ FILE *fp;
+ pid = getpid();
+ if ((fp = fopen(PIDFILE, "w")) == NULL)
+ if ((fp = fopen(PIDFILE, "w")) == NULL) {
+ o_log(NORMAL, "Fatal: Error writing to pidfile: %s", PIDFILE);
+ exit(-1);
+ }
+ fprintf(fp, "%ld\n", (long)pid);
+ fclose(fp);
+ }

Loading…
Cancel
Save