1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/net-mgmt/wide-dhcp/files/patch-as
Satoshi Asami 6370b94892 Re-import wide-dhcp to a more suitable location. Also change the port
to one that works.

Submitted by:	Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
1996-05-04 02:43:35 +00:00

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