summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-31 01:58:53 -0400
committerIan Moffett <ian@osmora.org>2025-05-31 01:58:53 -0400
commit5907c6f4b449d90aa9173955374e24408d5c9c8c (patch)
tree52bfa78fd893f1cefed376295d175a87363b8c1d /sys/include
parenta1383ceb824076be78b23913b1a750c3a70a4f80 (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/spawn.h3
1 files changed, 3 insertions, 0 deletions
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 <sys/types.h>
+#include <sys/param.h>
+
+#define SPAWN_WAIT BIT(0)
#if !defined(_KERNEL)
pid_t spawn(const char *pathname, int flags);