aboutsummaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-05-03 18:39:49 +0200
committerPetr Machata <pmachata@redhat.com>2012-05-03 18:39:49 +0200
commit61686c26634ea847c41470801572b49bebce5b99 (patch)
tree417aa2744c3f68abe2ef23d329565e5d284c2687 /proc.c
parent54004758185489b6bf74aa94e7ccd83b23840362 (diff)
downloadltrace-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 51833fe..54afbe0 100644
--- a/proc.c
+++ b/proc.c
@@ -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);
}
}