From 5907c6f4b449d90aa9173955374e24408d5c9c8c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 31 May 2025 01:58:53 -0400 Subject: kernel: spawn: Add support for SPAWN_WAIT flag Add SPAWN_WAIT flag that causes spawn() to wait until the child process completes. Signed-off-by: Ian Moffett --- sys/include/sys/spawn.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/spawn.h b/sys/include/sys/spawn.h index 3828d5c..9d823db 100644 --- a/sys/include/sys/spawn.h +++ b/sys/include/sys/spawn.h @@ -31,6 +31,9 @@ #define _SYS_SPAWN_H_ #include +#include + +#define SPAWN_WAIT BIT(0) #if !defined(_KERNEL) pid_t spawn(const char *pathname, int flags); -- cgit v1.2.3