[Ltrace-devel] [PATCH] Apply workaround for exec() only on linux

Andrey Zonov zont at FreeBSD.org
Tue Jan 29 13:02:13 UTC 2013


---
 handle_event.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/handle_event.c b/handle_event.c
index dd1eaaa..ebe0307 100644
--- a/handle_event.c
+++ b/handle_event.c
@@ -488,6 +488,7 @@ handle_exec(Event *event)

        continue_process(proc->pid);

+#ifdef __linux__
        /* After the exec, we expect to hit the first executable
         * instruction.
         *
@@ -498,6 +499,7 @@ handle_exec(Event *event)
         * be rolled into EVENT_NEW.  */
        wait_for_proc(proc->pid);
        continue_process(proc->pid);
+#endif
 }

 static void
-- 
1.8.0.2


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 535 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20130129/f6f355f6/attachment.pgp>


More information about the Ltrace-devel mailing list