mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
6370b94892
to one that works. Submitted by: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
23 lines
521 B
Plaintext
23 lines
521 B
Plaintext
--- 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);
|
|
}
|
|
|
|
/*
|