Skip to content

Commit 718b16a

Browse files
[libc][wait] add comment about __W_CONTINUED value (#125934)
1 parent db9caf6 commit 718b16a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/src/sys/wait/wait4Impl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ 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+
// Set wait_status to a value that the caller can check via WIFCONTINUED.
69+
// glibc has a non-POSIX macro definition __W_CONTINUED for this value.
6870
*wait_status = 0xffff;
6971
break;
7072
default:

0 commit comments

Comments
 (0)