Get your Parent Process Id (PPID) and compare it with the PID of launchd.
In the screen grab, you can see launchd's
PID is 41840 (in red) and the PPIDs of mdflagwriter
, distnoted
and cfprefsd
(in blue) match that number, so they were launched by launchd
.