{
struct processtop *newproc;
- if (opt_pid && tid != opt_pid)
+ if (opt_tid && !lookup_tid_list(tid))
return NULL;
/* if the PID already exists, we just rename the process */
return tm;
}
+
+int *lookup_tid_list(int tid)
+{
+ return g_hash_table_lookup(tid_list, (gpointer) &tid);
+}