Index: kernel/generic/src/proc/task.c
===================================================================
--- kernel/generic/src/proc/task.c	(revision 4ef6645dd99822554c46ff276f9076d4bed7c09d)
+++ kernel/generic/src/proc/task.c	(revision 770971c11224abfca847a41fbd1c496a38d71ff8)
@@ -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;
