mirror of git://sourceware.org/git/glibc.git
(__pipe): Consider MIG_BAD_ID and EOPNOTSUPP as indications that the server port has died.
This commit is contained in:
parent
ac00263ea0
commit
620ce2509a
|
|
@ -48,7 +48,8 @@ DEFUN(__pipe, (fds), int fds[2])
|
||||||
/* Create two local domain sockets and connect them together. */
|
/* Create two local domain sockets and connect them together. */
|
||||||
|
|
||||||
err = __socket_create (server, SOCK_STREAM, 0, &sock1);
|
err = __socket_create (server, SOCK_STREAM, 0, &sock1);
|
||||||
if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED)
|
if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED
|
||||||
|
|| err == MIG_BAD_ID || err == EOPNOTSUPP)
|
||||||
{
|
{
|
||||||
/* On the first use of the socket server during the operation,
|
/* On the first use of the socket server during the operation,
|
||||||
allow for the old server port dying. */
|
allow for the old server port dying. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue