// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: dpkgpm.cc,v 1.14 1999/09/10 02:40:31 jgg Exp $
+// $Id: dpkgpm.cc,v 1.16 1999/12/12 03:48:36 jgg Exp $
/* ######################################################################
DPKG Package Manager - Provide an interface to dpkg
/* No Job Control Stop Env is a magic dpkg var that prevents it
from using sigstop */
- setenv("DPKG_NO_TSTP","yes",1);
+ putenv("DPKG_NO_TSTP=yes");
execvp(Args[0],(char **)Args);
cerr << "Could not exec dpkg!" << endl;
_exit(100);
{
RunScripts("DPkg::Post-Invoke");
if (WIFSIGNALED(Status) != 0 && WTERMSIG(Status) == SIGSEGV)
- return _error->Error("Sub-process recieved a segmentation fault.");
+ return _error->Error("Sub-process %s recieved a segmentation fault.",Args[0]);
if (WIFEXITED(Status) != 0)
- return _error->Error("Sub-process returned an error code (%u)",WEXITSTATUS(Status));
+ return _error->Error("Sub-process %s returned an error code (%u)",Args[0],WEXITSTATUS(Status));
- return _error->Error("Sub-process exited unexpectedly");
+ return _error->Error("Sub-process %s exited unexpectedly",Args[0]);
}
}