aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-01 02:06:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-01 02:06:34 +0000
commit0459527c5da78052c5e054ae122f8214f2284fc3 (patch)
treed0d6e19580a4fc2c286922ee32e83581ae315843
parentb26407afcda132e39175363b171208b7f4640bf8 (diff)
downloadpaludis-0459527c5da78052c5e054ae122f8214f2284fc3.tar.gz
paludis-0459527c5da78052c5e054ae122f8214f2284fc3.tar.xz
Log execl calls, as per popen
-rw-r--r--paludis/util/system.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/util/system.cc b/paludis/util/system.cc
index c2dc581..8082ecc 100644
--- a/paludis/util/system.cc
+++ b/paludis/util/system.cc
@@ -19,6 +19,7 @@
#include <cstdlib>
#include <paludis/util/system.hh>
+#include <paludis/util/log.hh>
#include <sys/utsname.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -72,6 +73,7 @@ paludis::run_command(const std::string & cmd)
int status(-1);
if (0 == child)
{
+ Log::get_instance()->message(ll_debug, "execl /bin/sh -c " + cmd);
execl("/bin/sh", "sh", "-c", cmd.c_str(), static_cast<char *>(0));
throw InternalError(PALUDIS_HERE, "execl failed"); /// \todo fixme
}