1999-02-10 Roland McGrath <roland@baalperazim.frob.com>

* sysdeps/mach/hurd/pipe.c (__pipe): Don't call __socket_shutdown on 
the "unused" ends of the sockets.  Let pipes be bidirectional.
This commit is contained in:
Roland McGrath 1999-02-15 16:11:21 +00:00
parent 98ad070038
commit cfcf323d33
1 changed files with 1 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. /* Copyright (C) 1992, 93, 94, 95, 96, 99 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -72,10 +72,6 @@ __pipe (fds)
return __hurd_fail (err); return __hurd_fail (err);
} }
/* Shut down the unused sides of the sockets. */
__socket_shutdown (sock1, 1);
__socket_shutdown (sock2, 0);
/* Put the sockets into file descriptors. */ /* Put the sockets into file descriptors. */
d1 = _hurd_intern_fd (sock1, O_IGNORE_CTTY, 1); d1 = _hurd_intern_fd (sock1, O_IGNORE_CTTY, 1);