4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
13 #include <collection.h>
20 static void child_died(int signum
)
24 FilerWindow
*filer_window
;
26 /* Find out which children exited. This also has the effect of
27 * allowing the children to die.
31 child
= waitpid(-1, &status
, WNOHANG
| WUNTRACED
);
33 if (child
== 0 || child
== -1)
36 filer_window
= g_hash_table_lookup(child_to_filer
,
39 scan_dir(filer_window
);
41 if (!WIFSTOPPED(status
))
42 g_hash_table_remove(child_to_filer
,
48 int main(int argc
, char **argv
)
50 gtk_init(&argc
, &argv
);
57 signal(SIGCHLD
, child_died
);
60 filer_opendir(getenv("HOME"));
64 for (i
= 1; i
< argc
; i
++)
65 filer_opendir(argv
[i
]);