← All docs
pcntl_sigtimedwait()
Waits up to a timeout for one selected Linux signal and returns its number or false.
pcntl_sigtimedwait()
function pcntl_sigtimedwait(mixed $signals, mixed $info = [], int $seconds = 0, int $nanoseconds = 0): mixed
Waits up to a timeout for one selected Linux signal and returns its number or false.
Parameters:
$signals(mixed)$info(mixed), passed by reference, default[], optional$seconds(int), default0, optional$nanoseconds(int), default0, optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/pcntl/pcntl_sigtimedwait.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how pcntl_sigtimedwait is implemented in the compiler, see the internals page.