1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>

* gutil.c (my_system_get_child_pid): Fix.  We always wait for the
	child process.
This commit is contained in:
Miguel de Icaza 1999-02-07 07:04:04 +00:00
parent 90bcdf1107
commit faa8560535
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,8 @@
1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gutil.c (my_system_get_child_pid): Fix. We always wait for the
child process.
* gtkdtree.c (gtk_dtree_lookup_dir): Scan the whole tree.
Appanrently now the nodes expose are not ordered, but can contain
holes and gaps

View File

@ -95,11 +95,7 @@ int my_system_get_child_pid (int flags, const char *shell, const char *command,
*/
_exit (0);
}
if (*pid != 0 && (flags & EXECUTE_WAIT)){
int status;
waitpid (*pid, &status, 0);
}
waitpid (*pid, &status, 0);
sigaction (SIGINT, &save_intr, NULL);
sigaction (SIGQUIT, &save_quit, NULL);
sigaction (SIGTSTP, &save_stop, NULL);