Mike Frysinger wrote: > > @@ -237,9 +237,9 @@ int main(int argc, char **argv) > > send_output("----------------\n", 0, send_flag); > > > > if (outbuf) { > > - pid = fork(); > > + pid = vfork(); > > if (pid < 0) { > > - perror("fork"); > > + perror("vfork"); > > exit(1); > > } > > if (pid) { > > but this one is wrong because the child will call exit() after > writing its log
It's ok to call _exit() in a vfork-child, but not exit(). So that should be changed. Writing the log in a vfork-child is dodgy, depending on how it's done. -- Jamie _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev