Fix getpid call.
authorScott Cantor <cantor.2@osu.edu>
Sat, 6 Jun 2009 21:50:35 +0000 (21:50 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sat, 6 Jun 2009 21:50:35 +0000 (21:50 +0000)
shibd/shibd.cpp

index 47e21b1..4c86dae 100644 (file)
@@ -366,7 +366,7 @@ int main(int argc, char *argv[])
             if (pidfile) {\r
                 FILE* pidf = fopen(pidfile, "w");\r
                 if (pidf) {\r
-                    fprintf(pidf, "%d\n", pid);\r
+                    fprintf(pidf, "%d\n", getpid());\r
                     fclose(pidf);\r
                 }\r
                 else {\r