bim: at least attempt to wait for forked children

This commit is contained in:
K. Lange 2022-09-02 13:14:39 +09:00
parent 658673cd19
commit 9fd1c854b4
2 changed files with 3 additions and 0 deletions

View File

@ -4188,6 +4188,7 @@ int git_examine(char * filename) {
}
fclose(f);
waitpid(-1,NULL,WNOHANG);
return 0;
}
@ -5205,6 +5206,7 @@ int _prefix_command_run_script(char * cmd) {
env->lines = remove_line(env->lines, env->line_no-1);
}
fclose(result);
waitpid(-1,NULL,WNOHANG);
env->loading = 0;
/* Return to the original buffer and replace the selected lines with the output */

View File

@ -23,6 +23,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <kuroko/vm.h>
#ifdef __DATE__