Glenn Saberton <gsaber...@foomagic.org> writes: > +static int start_wpa_daemon(struct debconfclient *client) > +{ > + wpa_supplicant_pid = fork(); > + > + if (wpa_supplicant_pid == 0) { > + fclose(client->out); > + if (execlp("wpa_supplicant", "wpa_supplicant", "-i", interface, "-C", > + WPASUPP_CTRL, "-P", WPAPID, "-B", NULL) == -1) { > + di_error("could not exec wpasupplicant: %s", strerror(errno)); > + return 1; > + } > + else > + return 0; > + } > + else { > + waitpid(wpa_supplicant_pid, NULL, 0); > + return 0; > + } > +}
this looks fishy. Are you sure you want to return if the child has failed to exec? -- Gruesse/greetings, Reinhard Tartler, KeyID 945348A4 -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org