- if (WIFSIGNALED(status)) {
- fatal("udp (%s:%d): authbind died on signal %d",cc->loc.file,
- cc->loc.line, WTERMSIG(status));
- }
- if (WIFEXITED(status) && WEXITSTATUS(status)!=0) {
- fatal("udp (%s:%d): authbind died with status %d",cc->loc.file,
- cc->loc.line, WEXITSTATUS(status));
+ if (status) {
+ if (WIFEXITED(status) && WEXITSTATUS(status)<127) {
+ int es=WEXITSTATUS(status);
+ lg_perror(FAIL_LG,es,
+ "authbind exited with error exit status %d;"
+ " indicates error",es);
+ } else {
+ lg_exitstatus(FAIL_LG,status,"authbind");
+ }
+ goto failed;