aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/sys.h
diff options
context:
space:
mode:
authorMarvin Borner2020-09-06 00:02:41 +0200
committerMarvin Borner2020-09-06 00:02:41 +0200
commitc0608f199fc711aa82867f80059dfeebf38b4a25 (patch)
tree2495344b5910bf5f1c2977fc829b715ca320ffb3 /libc/inc/sys.h
parentb00d78697723eb3930a40125c02d328548946206 (diff)
Fixed GPF on non-existent exec
Diffstat (limited to 'libc/inc/sys.h')
-rw-r--r--libc/inc/sys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/inc/sys.h b/libc/inc/sys.h
index 7c3e6fb..073ccd2 100644
--- a/libc/inc/sys.h
+++ b/libc/inc/sys.h
@@ -67,6 +67,7 @@ int sysv(enum sys num, ...);
{ \
sys1(SYS_EXIT, (int)status); \
while (1) { \
+ yield(); \
} \
}
#define yield() (int)sys0(SYS_YIELD)