Code

Trace into open fd and refactor tracing code.