]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/fileutl.cc
add ignore patterns to be able to use "bzr status" or "bzr add" again
[apt.git] / apt-pkg / contrib / fileutl.cc
index a5976cf3af811fb3abe6b3d0c966a6b2b6779b02..4240d9f4930b004828b201d72dd7395161060a8d 100644 (file)
@@ -450,8 +450,13 @@ bool ExecWait(pid_t Pid,const char *Name,bool Reap)
    {
       if (Reap == true)
         return false;
-      if (WIFSIGNALED(Status) != 0 && WTERMSIG(Status) == SIGSEGV)
-        return _error->Error(_("Sub-process %s received a segmentation fault."),Name);
+      if (WIFSIGNALED(Status) != 0)
+      {
+        if( WTERMSIG(Status) == SIGSEGV)
+           return _error->Error(_("Sub-process %s received a segmentation fault."),Name);
+        else 
+           return _error->Error(_("Sub-process %s received signal %u."),Name, WTERMSIG(Status));
+      }
 
       if (WIFEXITED(Status) != 0)
         return _error->Error(_("Sub-process %s returned an error code (%u)"),Name,WEXITSTATUS(Status));