- file = g_new0(struct files, 1);
- file->name = strdup(file_name);
- file->fd = fd;
- tmp = find_process_tid(<tngtop, tid, comm);
- edit_file(tmp, file, fd);
-
- fprintf(stderr, "%lu %s\n", tmp->tid, file_name);
+ parent = get_proc_pid(<tngtop, pid, pid, timestamp);
+ parent->files_history = create_file(parent->files_history, file_name);
+ file = parent->files_history->file;
+ edit_file(parent, file, fd);