port_writev_etc(): Missing check whether the port has been closed after
waiting. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34685 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f887c7059e
commit
3ffeff0770
@ -1301,7 +1301,7 @@ writev_port_etc(port_id id, int32 msgCode, const iovec* msgVecs,
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user