mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 23:12:22 +00:00
Add a simplified waitpid() so that sh can wait on spawned commands.
This commit is contained in:
parent
018da1be11
commit
3253a23b91
Notes:
sideshowbarker
2024-07-19 18:39:49 +09:00
Author: https://github.com/awesomekling
Commit: 3253a23b91
8 changed files with 42 additions and 7 deletions
|
@ -18,7 +18,9 @@ static int runcmd(char* cmd)
|
|||
int ret = spawn(buf);
|
||||
if (ret == -1) {
|
||||
printf("spawn failed: %s\n", cmd);
|
||||
return 1;
|
||||
}
|
||||
waitpid(ret);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue