… | |
… | |
40 | #include "pidfile.h" |
40 | #include "pidfile.h" |
41 | #include "dropin.h" |
41 | #include "dropin.h" |
42 | |
42 | |
43 | #include "global.h" |
43 | #include "global.h" |
44 | #include "conf.h" |
44 | #include "conf.h" |
|
|
45 | #include "util.h" |
45 | #include "slog.h" |
46 | #include "slog.h" |
46 | #include "protocol.h" |
|
|
47 | |
47 | |
48 | int |
48 | int |
49 | write_pidfile (void) |
49 | write_pidfile (void) |
50 | { |
50 | { |
51 | int pid; |
51 | int pid; |
… | |
… | |
144 | int pid; |
144 | int pid; |
145 | |
145 | |
146 | if ((pid = fork ()) == 0) |
146 | if ((pid = fork ()) == 0) |
147 | { |
147 | { |
148 | char *filename; |
148 | char *filename; |
149 | asprintf (&filename, "%s/%s", confbase, cb(0)); |
149 | asprintf (&filename, "%s/%s", confbase, cb()); |
150 | execl (filename, filename, (char *) 0); |
150 | execl (filename, filename, (char *) 0); |
151 | exit (255); |
151 | exit (255); |
152 | } |
152 | } |
153 | else if (pid > 0) |
153 | else if (pid > 0) |
154 | { |
154 | { |