use exec except of system() to start external viewer

This commit is contained in:
Jean-Francois Dockes
2010-09-27 17:41:54 +02:00
parent c9a0172d58
commit fd0cdcbdcf
4 changed files with 34 additions and 23 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ public:
~ExecCmdRsrc() {
if (!m_active || !m_parent)
return;
LOGDEB0(("~ExecCmdRsrc: working\n"));
LOGDEB1(("~ExecCmdRsrc: working. mypid: %d\n", (int)getpid()));
int status;
if (m_parent->m_pid > 0) {
LOGDEB(("ExecCmd: killing cmd\n"));
+3
View File
@@ -199,6 +199,9 @@ class ExecCmd {
// Child process code
void dochild(const string &cmd, const list<string>& args,
bool has_input, bool has_output);
/* Copyconst and assignment private and forbidden */
ExecCmd(const ExecCmd &) {}
ExecCmd& operator=(const ExecCmd &) {return *this;};
};