Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F7458
uipc_socket_fix
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
davide
Jul 17 2014, 3:56 AM
2014-07-17 03:56:05 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
uipc_socket_fix
View Options
Index: uipc_socket.c
===================================================================
--- uipc_socket.c (revision 268643)
+++ uipc_socket.c (working copy)
@@ -2548,7 +2548,10 @@
goto bad;
}
val = tvtosbt(tv);
-
+ printf("%ld\n", val);
+ if (val > INT_MAX) {
+ val = INT_MAX;
+ }
switch (sopt->sopt_name) {
case SO_SNDTIMEO:
so->so_snd.sb_timeo = val;
@@ -2698,10 +2701,9 @@
case SO_SNDTIMEO:
case SO_RCVTIMEO:
- optval = (sopt->sopt_name == SO_SNDTIMEO ?
+ tv = sbttotv(sopt->sopt_name == SO_SNDTIMEO ?
so->so_snd.sb_timeo : so->so_rcv.sb_timeo);
-
- tv = sbttotv(optval);
+ printf("%ld %ld", tv.tv_sec, tv.tv_usec);
#ifdef COMPAT_FREEBSD32
if (SV_CURPROC_FLAG(SV_ILP32)) {
struct timeval32 tv32;
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7408
Default Alt Text
uipc_socket_fix (1 KB)
Attached To
Mode
P13 uipc socket fix
Attached
Detach File
Event Timeline
Log In to Comment