summaryrefslogtreecommitdiffstats
path: root/misplays.c
diff options
context:
space:
mode:
Diffstat (limited to 'misplays.c')
-rw-r--r--misplays.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/misplays.c b/misplays.c
index da15a30..2f0ce8f 100644
--- a/misplays.c
+++ b/misplays.c
@@ -27,9 +27,10 @@ static pid_t dofork(char **argv, struct console *cons) {
}
if (pid == 0) {
+ usleep(100000);
console_configslave(cons);
close_range(STDERR_FILENO+1, ~0U, CLOSE_RANGE_UNSHARE);
- raise(SIGSTOP); // ptrace(PTRACE_TRACEME, 0, NULL, NULL);
+ //raise(SIGSTOP); // ptrace(PTRACE_TRACEME, 0, NULL, NULL);
execvp(argv[0], argv);
exit(EXIT_FAILURE);
}
@@ -209,6 +210,10 @@ int main(int argc, char **argv) {
list_insert(processes.end, proc);
th = proc->threads.head;
+ if (child) {
+ dbg_cont(th, PTRACE_CONT);
+ }
+
cursinit();
left = newpan(0, 0, 0, 0);
right = newpan(0, 0, 0, 0);