Skip to content

Commit b4d547a

Browse files
[libc][wait] hard code __W_CONTINUED for SYS_waitid fallback (#125929)
riscv32 currently doesn't have SYS_wait4, so wait4 is implemented via fallback to SYS_waitid. In #125572, I missed that we had one use of the removed __W_CONTINUED value. Hard code it here. Fixes: #125572
1 parent 4eab219 commit b4d547a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/sys/wait/wait4Impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ LIBC_INLINE ErrorOr<pid_t> wait4impl(pid_t pid, int *wait_status, int options,
6565
*wait_status = W_STOPCODE(info.si_status);
6666
break;
6767
case CLD_CONTINUED:
68-
*wait_status = __W_CONTINUED;
68+
*wait_status = 0xffff;
6969
break;
7070
default:
7171
*wait_status = 0;

0 commit comments

Comments
 (0)