1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/net/wide-dhcp/files/patch-as

23 lines
521 B
Plaintext
Raw Normal View History

--- 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);
}
/*