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.
gentoo-overlay/net-misc/mdidentd/files/1.04a-pidfile.patch

18 lines
483 B

--- 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;
}