]> git.lyx.org Git - features.git/blobdiff - src/support/Systemcall.h
Systemcall infrastructure for canceling background processes.
[features.git] / src / support / Systemcall.h
index 876aa357b8b99aa79d5e0fc07d2897836dbd32ed..32f3a61dd1fe41aec202e5d1a0a36d2281656c44 100644 (file)
@@ -34,8 +34,18 @@ class Systemcall {
 public:
        /// whether to wait for completion
        enum Starttype {
-               Wait, //< wait for completion before returning from startscript()
-               DontWait //< don't wait for completion
+               Wait,     //< wait for completion before returning from startscript()
+               WaitLoop, //< wait, but check occasionally for cancellation
+               DontWait  //< don't wait for completion
+       };
+       // enum values chosen hopefully not to conflict with ordinary return values
+       enum ReturnValue {
+               OK = 0,
+               NOSTART = 1001,
+               ERROR = 2001,
+               TIMEOUT = 4001,
+               KILLED = 9001
        };
 
        /** Start child process.