瀏覽代碼

* fix for Mantis #36895: the new epoll_pwait was missing the size parameter for the sigmask parameter

git-svn-id: trunk@45208 -
svenbarth 5 年之前
父節點
當前提交
2840e5e1fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/linux/linux.pp

+ 1 - 1
rtl/linux/linux.pp

@@ -642,7 +642,7 @@ end;
 function epoll_pwait(epfd: cint; events: pepoll_event; maxevents, timeout: cint; sigmask: PSigSet): cint;
 begin
   epoll_pwait := do_syscall(syscall_nr_epoll_pwait, tsysparam(epfd),
-    tsysparam(events), tsysparam(maxevents), tsysparam(timeout), tsysparam(sigmask));
+    tsysparam(events), tsysparam(maxevents), tsysparam(timeout), tsysparam(sigmask), sizeof(TSigSet));
 end;
 
 function capget(header:Puser_cap_header;data:Puser_cap_data):cint;