Conceal the list of processes behind an interface
diff --git a/sysdeps/linux-gnu/events.c b/sysdeps/linux-gnu/events.c
index bd073dc..52978b4 100644
--- a/sysdeps/linux-gnu/events.c
+++ b/sysdeps/linux-gnu/events.c
@@ -13,6 +13,12 @@
 
 static Event event;
 
+static enum pcb_status
+first (Process * proc, void * data)
+{
+	return pcb_stop;
+}
+
 Event *
 next_event(void)
 {
@@ -22,7 +28,7 @@
 	int stop_signal;
 
 	debug(DEBUG_FUNCTION, "next_event()");
-	if (!list_of_processes) {
+	if (!each_process(NULL, &first, NULL)) {
 		debug(DEBUG_EVENT, "event: No more traced programs: exiting");
 		exit(0);
 	}