summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/mdidentd/files/1.04a-pidfile.patch')
-rw-r--r--net-misc/mdidentd/files/1.04a-pidfile.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-misc/mdidentd/files/1.04a-pidfile.patch b/net-misc/mdidentd/files/1.04a-pidfile.patch
new file mode 100644
index 000000000000..ec75f22b85b6
--- /dev/null
+++ b/net-misc/mdidentd/files/1.04a-pidfile.patch
@@ -0,0 +1,17 @@
+--- mdidentd/identd.cpp.orig 2003-11-03 19:21:50.175424408 -0500
++++ mdidentd/identd.cpp 2003-11-03 19:25:05.683702632 -0500
+@@ -709,6 +709,14 @@
+ return -1;
+
+ default:
++ FILE *pidfile;
++ /* make the pid file */
++ pidfile = fopen("/var/run/mdidentd.pid", "w");
++ if (pidfile) {
++ fprintf(pidfile, "%i", xx);
++ fclose(pidfile);
++ } else
++ perror("Could not write pidfile");
+ return xx;
+
+ }