You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.2 KiB

Index: src/oidentd.h
--- src/oidentd.h.orig 2003-07-11 16:11:25.000000000 +0200
+++ src/oidentd.h 2003-11-02 12:57:59.000000000 +0100
@@ -33,6 +33,12 @@
#define UPREFIX "user"
/*
+** System-wide PID file.
+*/
+
+#define PIDFILE "/var/run/oidentd.pid"
+
+/*
** System-wide configuration file.
*/
Index: src/oidentd.c
--- src/oidentd.c.orig 2003-04-24 02:03:54.000000000 +0200
+++ src/oidentd.c 2003-11-02 12:58:23.000000000 +0100
@@ -97,6 +97,18 @@
exit(-1);
}
+ {
+ pid_t pid;
+ FILE *fp;
+ pid = getpid();
+ 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);
+ }
+
if (!opt_enabled(STDIO)) {
listen_fds = setup_listen(addr, htons(listen_port));
if (listen_fds == NULL || listen_fds[0] == -1) {
Index: configure
--- configure.orig 2003-07-11 17:50:57.000000000 +0200
+++ configure 2004-01-24 21:31:19.000000000 +0100
@@ -5982,7 +5982,7 @@
LIBS="$LIBS -lelf"
;;
- *solaris2.9* )
+ *solaris2.9* | *solaris2.10* )
cat >>confdefs.h <<\_ACEOF
#define SOLARIS 8