diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-13 22:19:02 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 01:38:03 +0200 |
commit | cb39a404fcf944e0ae6ec58da9e0448bf49ff290 (patch) | |
tree | 87d5198b573e768701699ff3ceec18983cb552c1 | |
parent | d3cc9889fdfe2e523e99ca5f664f8ae4b3936612 (diff) | |
download | ltrace-cb39a404fcf944e0ae6ec58da9e0448bf49ff290.tar.gz |
Wait for initial event from process after exec
-rw-r--r-- | handle_event.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/handle_event.c b/handle_event.c index e47b9a2..b852873 100644 --- a/handle_event.c +++ b/handle_event.c @@ -497,6 +497,13 @@ handle_exec(Event * event) { breakpoints_init(proc, 0); proc->callstack_depth = 0; continue_process(proc->pid); + + /* After the exec, we expect to hit the first executable + * instruction. It would be nice to have this removed, but + * then we need to do that also for initial call to + * wait_for_proc in execute_program. XXX todo. */ + wait_for_proc(proc->pid); + continue_process(proc->pid); } static void |