Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160036283
D22517.id64759.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22517.id64759.diff
View Options
Index: sys/compat/linux/linux_event.c
===================================================================
--- sys/compat/linux/linux_event.c
+++ sys/compat/linux/linux_event.c
@@ -557,13 +557,13 @@
return (error);
if (epfp->f_type != DTYPE_KQUEUE) {
error = EINVAL;
- goto leave1;
+ goto leave;
}
if (uset != NULL) {
error = kern_sigprocmask(td, SIG_SETMASK, uset,
&omask, 0);
if (error != 0)
- goto leave1;
+ goto leave;
td->td_pflags |= TDP_OLDMASK;
/*
* Make sure that ast() is called on return to
@@ -581,11 +581,7 @@
coargs.count = 0;
coargs.error = 0;
- if (timeout != -1) {
- if (timeout < 0) {
- error = EINVAL;
- goto leave0;
- }
+ if (timeout >= 0) {
/* Convert from milliseconds to timespec. */
ts.tv_sec = timeout / 1000;
ts.tv_nsec = (timeout % 1000) * 1000000;
@@ -605,11 +601,10 @@
if (error == 0)
td->td_retval[0] = coargs.count;
-leave0:
if (uset != NULL)
error = kern_sigprocmask(td, SIG_SETMASK, &omask,
NULL, 0);
-leave1:
+leave:
fdrop(epfp, td);
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 21, 7:15 PM (8 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34159164
Default Alt Text
D22517.id64759.diff (1 KB)
Attached To
Mode
D22517: Linux epoll: Allow passing of any negative timeout value to epoll_wait
Attached
Detach File
Event Timeline
Log In to Comment