[Ltrace-devel] suppressing process creation output

Petr Machata pmachata at redhat.com
Mon Aug 8 16:28:23 UTC 2011


Adam Dingle <adam at yorba.org> writes:

> ltrace is an extremely useful tool!
> I find that when I'm tracing a tree of child processes using the -f
> option, the following type of output (which is printed unconditionally)
> becomes distracting:
> [pid 6494] --- Called exec() ---
> [pid 6496] --- Called exec() ---
> [pid 6496] +++ exited (status 0) +++
> [pid 6495] --- SIGCHLD (Child exited) ---
> [pid 6495] +++ exited (status 0) +++
> [pid 6494] --- SIGCHLD (Child exited) ---
> [pid 6494] --- Called exec() ---
> [pid 6499] --- Called exec() ---
> [pid 6500] +++ exited (status 0) +++
> [pid 6499] +++ exited (status 0) +++
> ...
> I'd like to propose that this ouput appear only when DEBUG_PROCESS is
> enabled. Does this seem reasonable? If so I'd be happy to code up a
> simple patch.
> adam

In my opinion, this should be visible outside of debug mode, too.  One
possibility would be to add an option (-P or so, akin to what -L does to
library calls) to silence this.

PM



More information about the Ltrace-devel mailing list