diff options
author | Guillem Jover <guillem@debian.org> | 2007-09-18 11:50:26 +0300 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2007-09-18 11:50:26 +0300 |
commit | dc69e6c35cda3b9b58c8faf880b69967ac7b8eb4 (patch) | |
tree | 3c559fd726c52131c5f49a8c1900614501e4979b /lib | |
parent | 826db4452b743ddf206662dc17cec5f097836933 (diff) | |
download | dpkg-dc69e6c35cda3b9b58c8faf880b69967ac7b8eb4.tar.gz |
Properly warn when the child process received a signal
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mlib.c b/lib/mlib.c index 2389f9f7f..2842d8817 100644 --- a/lib/mlib.c +++ b/lib/mlib.c @@ -118,8 +118,8 @@ int checksubprocerr(int status, const char *description, int flags) { } else if (WIFSIGNALED(status)) { n= WTERMSIG(status); if (!n || ((flags & PROCPIPE) && n==SIGPIPE)) return 0; if (flags & PROCWARN) - ohshit(_("dpkg: warning - %s killed by signal (%s)%s\n"), - description, strsignal(n), WCOREDUMP(status) ? _(", core dumped") : ""); + fprintf(stderr, _("dpkg: warning - %s killed by signal (%s)%s\n"), + description, strsignal(n), WCOREDUMP(status) ? _(", core dumped") : ""); else ohshit(_("subprocess %s killed by signal (%s)%s"), description, strsignal(n), WCOREDUMP(status) ? _(", core dumped") : ""); |