FreeBSD Bugzilla – Attachment 89054 Details for
Bug 125922
[patch] Deadlock in arp(8)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 655 bytes, created by
Damien Deville
on 2008-07-24 09:00:15 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Damien Deville
Created:
2008-07-24 09:00:15 UTC
Size:
655 bytes
patch
obsolete
>--- arp.c.orig 2006-10-21 07:43:29.000000000 +0200 >+++ arp.c 2008-07-23 10:41:44.000000000 +0200 >@@ -706,17 +706,28 @@ > l = rtm->rtm_msglen; > rtm->rtm_seq = ++seq; > rtm->rtm_type = cmd; > if ((rlen = write(s, (char *)&m_rtmsg, l)) < 0) { > if (errno != ESRCH || cmd != RTM_DELETE) { > warn("writing to routing socket"); > return (NULL); > } > } > do { > l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg)); >+ if ( l > 0 && rtm->rtm_seq == 0 && rtm->rtm_pid == 0 ) >+ return (NULL); /* something weird happened */ > } while (l > 0 && (rtm->rtm_seq != seq || rtm->rtm_pid != pid)); > if (l < 0) > warn("read from routing socket"); > return (rtm); > }
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 125922
: 89054