filtering by pid in cfv
[lttv.git] / ltt / branches / poly / lttv / lttv / state.h
index c97c6c15d4297b5a6b6c3618bc22183cf1231ff3..f53fee8565a67f5719a19abebff179a1858395bf 100644 (file)
@@ -344,7 +344,7 @@ static inline guint lttv_state_get_target_pid(LttvTracefileState *tfs)
   guint cpu = tfs->cpu;
   LttvProcessState *process = ts->running_process[cpu];
 
-  if(tfs->parent.target_pid) return tfs->parent.target_pid;
+  if(tfs->parent.target_pid >= 0) return tfs->parent.target_pid;
   else return process->pid;
 }
 
This page took 0.02219 seconds and 4 git commands to generate.