14
* run etc/i.find command in background to find all cell, vect files
15
* in the target location.
17
int find_target_files(void)
22
pid = G_fork(); /* use G_fork() to inhibit signals */
29
* parent waits for child. this wait will be short since child
30
* simply forks and exits. The grandchild runs in background
31
* and grandma continues
34
while ((w = wait(&status)) != pid && w != -1) ;
39
sprintf(command, "%s/etc/i.find", G_gisbase());
41
exit(0); /* go into background */
42
execl(command, "i.find",
43
G_location(), G_mapset(),
44
"cell", cell_list, "dig", vect_list, (char *)0);