about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-10-20 21:02:04 +0200
committerLeah Neukirchen <leah@vuxu.org>2018-10-20 21:02:08 +0200
commit2eb29401a132e56b70c061fb4bfaccef28717000 (patch)
treefa96abbd78f45e65050c273703a83b7fb1fee6e6
parent3c9a7c2fdcb4f6f11868271c776a7c4d453dc6ad (diff)
downloadextrace-2eb29401a132e56b70c061fb4bfaccef28717000.tar.gz
extrace-2eb29401a132e56b70c061fb4bfaccef28717000.tar.xz
extrace-2eb29401a132e56b70c061fb4bfaccef28717000.zip
extrace: ignore PROC_EVENT_NONE events
Closes #6.
-rw-r--r--extrace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extrace.c b/extrace.c
index 38f92c7..bbf68b4 100644
--- a/extrace.c
+++ b/extrace.c
@@ -587,6 +587,9 @@ usage:
 		    (struct sockaddr *)&from_nla, &from_nla_len);
 		if (from_nla.nl_pid != 0 || recv_len < 1)
 			continue;
+
+		if (cproc->what == PROC_EVENT_NONE)
+			continue;
 	
 		if (last_seq[cproc->cpu] &&
 		    cmsg->seq != last_seq[cproc->cpu] + 1)