Make error handling more generic

This commit is contained in:
Thomas Orozco 2015-02-28 18:19:26 -05:00
parent cf95d8c824
commit 60b466419a
1 changed files with 3 additions and 3 deletions

6
tini.c
View File

@ -136,9 +136,9 @@ int wait_and_forward_signal(sigset_t const* const parent_sigset_ptr, pid_t const
break;
case EINTR:
break;
case EINVAL:
PRINT_FATAL("EINVAL on sigtimedwait!");
return -1;
default:
PRINT_FATAL("Unexpected error in sigtimedwait: '%s'", strerror(errno));
return 1;
}
} else {
/* There is a signal to handle here */