blob: fd057ececff72853c86b8aea36be4a6086ef113d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- client/dhcpc.c.orig Fri Nov 3 01:40:40 1995
+++ client/dhcpc.c Tue Mar 26 18:06:39 1996
@@ -1760,6 +1760,7 @@
{
int debug = 0;
int n = 0;
+ FILE *pid_file;
struct if_info ifinfo;
bzero(&reqspec, sizeof(reqspec));
@@ -1789,6 +1790,11 @@
ioctl(n, TIOCNOTTY, (char *) 0);
close(n);
}
+ }
+ /* initialization works well, so recored its own pid */
+ if ((pid_file = fopen(PATH_PID, "w")) != NULL) {
+ fprintf(pid_file, "%d\n", (int) getpid());
+ fclose(pid_file);
}
/*
|