Hi (Petr),

in the attached patch there is a super-simple mechanism for destroying
orphaned windows left over after their task was killed. It seems to do
its job well, but after several iterations of spawning a new vterm and
killing it, either the entire GUI or the launcher app hangs. This may be
some unrelated issue, but I wanted to check with you whether this is the
right approach of getting rid of the orphaned windows.

Jakub
=== modified file 'uspace/srv/hid/compositor/compositor.c'
--- uspace/srv/hid/compositor/compositor.c	2013-04-09 17:30:11 +0000
+++ uspace/srv/hid/compositor/compositor.c	2013-04-21 08:47:54 +0000
@@ -841,7 +841,7 @@
 			callid = async_get_call(&call);
 
 			if (!IPC_GET_IMETHOD(call)) {
-				async_answer_0(callid, EINVAL);
+				comp_window_close(win, callid, &call);
 				return;
 			}
 

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to