4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
13 #include <collection.h>
19 static void child_died(int signum
)
23 FilerWindow
*filer_window
;
25 /* Find out which children exited. This also has the effect of
26 * allowing the children to die.
30 child
= waitpid(-1, &status
, WNOHANG
| WUNTRACED
);
32 if (child
== 0 || child
== -1)
35 filer_window
= g_hash_table_lookup(child_to_filer
,
38 scan_dir(filer_window
);
40 if (!WIFSTOPPED(status
))
41 g_hash_table_remove(child_to_filer
,
47 int main(int argc
, char **argv
)
49 gtk_init(&argc
, &argv
);
55 signal(SIGCHLD
, child_died
);
58 filer_opendir(getenv("HOME"));
62 for (i
= 1; i
< argc
; i
++)
63 filer_opendir(argv
[i
]);