diff options
Diffstat (limited to 'proc/mgt.c')
-rw-r--r-- | proc/mgt.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -223,6 +223,8 @@ S_proc_child (struct proc *parentp, childp->start_code = parentp->start_code; childp->end_code = parentp->end_code; } + if (! childp->exe && parentp->exe) + childp->exe = strdup (parentp->exe); if (MACH_PORT_VALID (parentp->p_task_namespace)) { @@ -860,6 +862,8 @@ process_has_exited (struct proc *p) if (!--p->p_login->l_refcnt) free (p->p_login); + free (p->exe); + p->exe = NULL; ids_rele (p->p_id); |