}
/*
- * kill()s the child-prozess (if existend) and closes and
+ * kill()s the child-process (if existent) and closes and
* free()s the stdin- and sigchild-watchers
*
*/
}
cleanup();
}
+
+/*
+ * Sends a SIGSTOP to the child-process (if existent)
+ *
+ */
+void stop_child() {
+ if (child_pid != 0) {
+ kill(child_pid, SIGSTOP);
+ }
+}
+
+/*
+ * Sends a SIGCONT to the child-process (if existent)
+ *
+ */
+void cont_child() {
+ if (child_pid != 0) {
+ kill(child_pid, SIGCONT);
+ }
+}