Browse Source

[sys/linux]: Fix missing return; Remove TODO for select()

flysand7 1 year ago
parent
commit
ff1ab74b3c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      core/sys/linux/sys.odin

+ 1 - 2
core/sys/linux/sys.odin

@@ -838,6 +838,7 @@ semop :: proc "contextless" (key: Key, ops: []Sem_Buf) -> (Errno) {
 			time_nsec = 0,
 		}
 		ret := syscall(SYS_semtimedop_time64, key, raw_data(ops), len(ops), &max_timespec)
+		return Errno(-ret)
 	}
 }
 
@@ -2559,8 +2560,6 @@ faccessat :: proc "contextless" (dirfd: Fd, name: cstring, mode: Mode = F_OK) ->
 	return errno_unwrap(ret, bool)
 }
 
-// TODO(flysand): pselect6
-
 /*
 	Wait for events on a file descriptor.
 	Available since Linux 2.6.16.