FreeBSD Bugzilla – Attachment 100522 Details for
Bug 139814
net-mgmt/arpalert exits with EINVAL of select()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 771 bytes, created by
fumifumi
on 2009-10-21 12:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
fumifumi
Created:
2009-10-21 12:20:00 UTC
Size:
771 bytes
patch
obsolete
>--- arpalert.c.orig 2008-04-01 03:36:42.000000000 +0900 >+++ arpalert.c 2009-10-21 19:45:53.000000000 +0900 >@@ -179,6 +179,12 @@ > if(cur_timeout.tv_sec != -1){ > time_sous(&cur_timeout, ¤t_t, &timeout); > >+ if (0 > timeout.tv_usec) { >+ /* avoid EINVAL (paranoid) */ >+ timeout.tv_sec -= (timeout.tv_usec / 1000000) + 1; >+ timeout.tv_usec = (timeout.tv_usec % 1000000) + 1000000; >+ } >+ > // prevent negative timeout > if(timeout.tv_sec < 0){ > timeout.tv_usec = 0; >@@ -188,6 +194,12 @@ > timeout.tv_usec += 10000; > tmout = &timeout; > >+ if (1000000 <= timeout.tv_usec) { >+ /* avoid EINVAL */ >+ timeout.tv_sec += timeout.tv_usec / 1000000; >+ timeout.tv_usec %= 1000000; >+ } >+ > // if no timeout > } else { > tmout = NULL;
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 139814
: 100522