Index: kernel/generic/src/proc/task.c
===================================================================
--- kernel/generic/src/proc/task.c	(revision f4876df3208c7072ab6acea44cf97f500f552093)
+++ kernel/generic/src/proc/task.c	(revision 95ad4261a658c1251b4295a88cf46215f3b4cde7)
@@ -55,4 +55,6 @@
 #include <string.h>
 #include <syscall/copy.h>
+#include <macros.h>
+#include <ipc/event.h>
 
 /** Spinlock protecting the tasks_tree AVL tree. */
@@ -230,4 +232,10 @@
 		as_destroy(t->as);
 	
+	/*
+	 * Notify about task destruction.
+	 */
+	if (event_is_subscribed(EVENT_WAIT))
+		event_notify_2(EVENT_WAIT, LOWER32(t->taskid), UPPER32(t->taskid));
+	
 	free(t);
 	TASK = NULL;
