#include <QDebug>
#define USE_QPROCESS
-
+#define DEBUG_SYSTEMCALL
struct Sleep : QThread
{
void SystemcallPrivate::processStarted()
{
+#ifdef DEBUG_SYSTEMCALL
+ cmd_ = cmd_ + " -- process: " + QString::number((quint64) proc_);
+ if (true) {
+#else
if (state != Running) {
+#endif
state = Running;
ProgressInterface::instance()->processStarted(cmd_);
}
void SystemcallPrivate::processFinished(int, QProcess::ExitStatus)
{
+#ifdef DEBUG_SYSTEMCALL
+ cmd_ = cmd_ + " -- process: " + QString::number((quint64) proc_);
+ if (true) {
+#else
if (state != Finished) {
+#endif
state = Finished;
ProgressInterface::instance()->processFinished(cmd_);
}