From faa8560535c38d1a623d6b0826852adafaa8ba02 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sun, 7 Feb 1999 07:04:04 +0000 Subject: [PATCH] 1999-02-07 Miguel de Icaza * gutil.c (my_system_get_child_pid): Fix. We always wait for the child process. --- gnome/ChangeLog | 3 +++ gnome/gutil.c | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index dca6ce10c..e37b03adc 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,5 +1,8 @@ 1999-02-07 Miguel de Icaza + * 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 diff --git a/gnome/gutil.c b/gnome/gutil.c index 73f4a6909..b17ab3e5e 100644 --- a/gnome/gutil.c +++ b/gnome/gutil.c @@ -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);