Handle multi-threaded attach/detach gracefully
diff --git a/proc.c b/proc.c
index 87b5a89..f896bac 100644
--- a/proc.c
+++ b/proc.c
@@ -63,6 +63,7 @@
 	}
 
 	proc = open_program(filename, pid, 1);
+	trace_set_options(proc, pid);
 	continue_process(pid);
 	proc->breakpoints_enabled = 1;
 }