Author: bonefish Date: 2009-12-17 11:51:05 +0100 (Thu, 17 Dec 2009) New Revision: 34685 Changeset: http://dev.haiku-os.org/changeset/34685/haiku Modified: haiku/trunk/src/system/kernel/port.cpp Log: port_writev_etc(): Missing check whether the port has been closed after waiting. Modified: haiku/trunk/src/system/kernel/port.cpp =================================================================== --- haiku/trunk/src/system/kernel/port.cpp 2009-12-16 20:39:54 UTC (rev 34684) +++ haiku/trunk/src/system/kernel/port.cpp 2009-12-17 10:51:05 UTC (rev 34685) @@ -1301,7 +1301,7 @@ locker.Lock(); - if (sPorts[slot].id != id) { + if (sPorts[slot].id != id || is_port_closed(slot)) { // the port is no longer there T(Write(sPorts[slot], 0, 0, B_BAD_PORT_ID)); return B_BAD_PORT_ID;