summaryrefslogtreecommitdiff
blob: ec75f22b85b65dfc075c32365c2bff86a2ae642b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
 
     }