Merge branch 'hide' into next

This commit is contained in:
Axel Wagner
2010-08-26 00:03:41 +02:00
7 changed files with 283 additions and 126 deletions

View File

@ -149,7 +149,7 @@ void start_child(char *command) {
}
/*
* 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
*
*/
@ -159,3 +159,23 @@ void kill_child() {
}
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);
}
}