]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Make rt_sitgimedwait stub block
authorMarco Schlumpp <marco@unikraft.io>
Wed, 30 Apr 2025 13:33:50 +0000 (15:33 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Fri, 2 May 2025 16:11:03 +0000 (16:11 +0000)
commit417554a35ef8ec6487b8f7f8a78fe67a67813d2b
tree810c7bc95ffe5290eb2fca4f9beb618d2d1ad56d
parent11f44d0025d18f84018e19bf9181ca74b98b2dd8
lib/posix-process: Make rt_sitgimedwait stub block

According to rt_sigtimedwait(2) the syscall should return a signal
number on success (> 0) or -1 on failure, so the zero value currently
returned by the stubbed implementation can be misinterpreted by
applications that check against failure. Update the stub to return
implementation to block and never return a signal.

Co-authored-by: Michalis Pappas <michalis@unikraft.io>
Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Sergiu Moga <sergiu@unikraft.io>
GitHub-Closes: #1639
lib/posix-process/signal/rt_sigtimedwait.c