wait() doesn't have meaning for separate threads; only for processes.
Additionally, it is not possible to run strace, except as a separate
(child) process. And, while "proc" does /represent/ an interface to the
child, it's still the parent that is doing the wait()ing, upon its child
(which is the strace process). It seems to me that the man page is
highly relevant; but I'm happy to wait for a second opinion.

As to reliably tracing oneself, you might try a method that would
involve killing the strace process (SIGTERM, probably), instead of
waiting for it to complete (which will cause strace to SIGSTOP the
parent).

-- 
strace leaves process SIGSTOPped after detaching
https://bugs.launchpad.net/bugs/103133
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to