X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FSystemcallPrivate.h;h=6ab479f73c329fd5b68a786b9cd6a608c478e9a2;hb=7b0f9d95248820bc70b820dd6b558de4a6713bae;hp=329274008b8f844b67e3d4e80b4facc320bcf4e4;hpb=51aebc9327345f6ea065035f489dbfec1568279f;p=lyx.git diff --git a/src/support/SystemcallPrivate.h b/src/support/SystemcallPrivate.h index 329274008b..6ab479f73c 100644 --- a/src/support/SystemcallPrivate.h +++ b/src/support/SystemcallPrivate.h @@ -40,7 +40,8 @@ public: Starting, Running, Finished, - Error + Error, + Killed }; State state; @@ -57,6 +58,9 @@ public: static void killProcess(QProcess * p); + // when true, kill any running script ASAP + static bool kill_script; + public Q_SLOTS: void stdOut(); @@ -95,6 +99,9 @@ private: void processEvents(); void killProcess(); + /// returns false if we killed the process + /// actually returns Systemcall::ReturnValue + bool waitAndCheck(); }; } // namespace support