Created attachment 183876 [details] Testcase: pdfork.c The attached program pdfork.c forks and launches /bin/ls. When run under ktrace(1), child process is launched, but doesn't appear in the trace file despite of the -d flag. > ktrace -d pdfork
FreeBSD 11.0-STABLE r317247
run ktrace with -di flags, as: -d Descendants; perform the operation for all current children of the designated processes. -i Inherit; pass the trace flags to all future children of the designated processes.
Thanks!