index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2013-08-20 22:00:10 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-09-04 09:51:19 +1000 |
commit | 3a2a752e1eb1b9a57d62e6982461456c9693d34c (patch) | |
tree | 99dd4ff35829b7f5bfd9aa1a68a34be73bb4b3dd /lib/libalpm/util.c | |
parent | ce7456b4ccbe3ca7b06c9b50fe59ce7367172c4f (diff) |
-rw-r--r-- | lib/libalpm/util.c | 9 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index f1f760a5..19a8612f 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -599,6 +599,15 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char *cmd, char *const argv[]) _alpm_log(handle, ALPM_LOG_ERROR, _("command failed to execute correctly\n")); retval = 1; } + } else if(WIFSIGNALED(status) != 0) { + char *signal_description = strsignal(WTERMSIG(status)); + /* strsignal can return NULL on some (non-Linux) platforms */ + if(signal_description == NULL) { + signal_description = _("Unknown signal"); + } + _alpm_log(handle, ALPM_LOG_ERROR, _("command terminated by signal %d: %s\n"), + WTERMSIG(status), signal_description); + retval = 1; } } |