+/**
+ * Forces the program to pause by sending SIGSTOP
+ * Program can be resumed by calling Continue() (which sends SIGCONT)
+ * @returns true if the program could be paused, false if it couldn't (probably because it wasn't running)
+ */
+bool Program::Pause()
+{
+ if (pid > 0 && kill(pid,SIGSTOP) == 0)
+ {
+ paused = true;
+ return true;
+ }
+ return false;
+}