FreeBSD Bugzilla – Attachment 10691 Details for
Bug 21375
[PATCH] dhclient runs away on interface removal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 892 bytes, created by
lyndon
on 2000-09-18 22:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
lyndon
Created:
2000-09-18 22:00:01 UTC
Size:
892 bytes
patch
obsolete
>--- dispatch.c.old Mon Sep 18 14:12:22 2000 >+++ dispatch.c Mon Sep 18 14:34:26 2000 >@@ -701,7 +701,26 @@ > > if ((result = > receive_packet (ip, u.packbuf, sizeof u, &from, &hfrom)) < 0) { >+ int save_errno = errno; >+ > warn ("receive_packet failed on %s: %m", ip -> name); >+ if (save_errno == ENXIO) { >+ /* >+ * The interface went away. All we can do for now >+ * is terminate since there is no support >+ * here for handling dynamic interfaces. >+ * >+ * This behaviour is relatively safe. The >+ * only time an interface should go away in >+ * normal operation is when a laptop NIC card >+ * is removed. If that happens there's no reason >+ * for us to stick around. The laptop's OS should >+ * handle restarting us when the interface comes >+ * back. >+ */ >+ error("%s: interface removed?", >+ ip -> name); >+ } > return; > } > if (result == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21375
: 10691