diff options
author | Petr Machata <pmachata@redhat.com> | 2012-05-03 18:39:49 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-05-03 18:39:49 +0200 |
commit | 61686c26634ea847c41470801572b49bebce5b99 (patch) | |
tree | 417aa2744c3f68abe2ef23d329565e5d284c2687 /proc.c | |
parent | 54004758185489b6bf74aa94e7ccd83b23840362 (diff) | |
download | ltrace-61686c26634ea847c41470801572b49bebce5b99.tar.gz |
Don't call remove_process in process_bare_destroy
This does many things, we only care obout the unlisting.
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -49,6 +49,7 @@ arch_dynlink_done(struct Process *proc) #endif static void add_process(struct Process *proc, int was_exec); +static void unlist_process(struct Process *proc); static int process_bare_init(struct Process *proc, const char *filename, @@ -96,7 +97,7 @@ process_bare_destroy(struct Process *proc, int was_exec) dict_clear(proc->breakpoints); if (!was_exec) { free(proc->filename); - remove_process(proc); + unlist_process(proc); } } |