From owner-freebsd-hackers Fri Sep 22 09:23:44 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA09153 for hackers-outgoing; Fri, 22 Sep 1995 09:23:44 -0700 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id JAA09066 for ; Fri, 22 Sep 1995 09:21:18 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id JAA28698; Fri, 22 Sep 1995 09:17:50 -0700 From: Terry Lambert Message-Id: <199509221617.JAA28698@phaeton.artisoft.com> Subject: Re: Masterplan 1.00 (fwd) To: vince@apollo.COSC.GOV (-Vince-) Date: Fri, 22 Sep 1995 09:17:50 -0700 (MST) Cc: chuckr@eng.umd.edu, FreeBSD-hackers@freefall.freebsd.org In-Reply-To: from "-Vince-" at Sep 21, 95 11:52:17 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1284 Sender: owner-hackers@FreeBSD.org Precedence: bulk > I tried replacing mknod with mkfifo as what Jordan and everyone else > told me but when it tried to write, it said broken pipe =( Anyone out > there used masterplan under FreeBSD? Patch /sys/kern/uipc_socket.c: =========================================================================== *** FIFO_SAVE/uipc_socket.c Fri Sep 22 09:06:21 1995 --- uipc_socket.c Fri Sep 22 09:11:54 1995 *************** *** 359,366 **** goto out; do { s = splnet(); ! if (so->so_state & SS_CANTSENDMORE) snderr(EPIPE); if (so->so_error) snderr(so->so_error); if ((so->so_state & SS_ISCONNECTED) == 0) { --- 359,369 ---- goto out; do { s = splnet(); ! if (so->so_state & SS_CANTSENDMORE) { ! if (so->so_state & SS_NBIO) ! snderr(EWOULDBLOCK); snderr(EPIPE); + } if (so->so_error) snderr(so->so_error); if ((so->so_state & SS_ISCONNECTED) == 0) { =========================================================================== And rebuild your kernel. Probably this is not the only fix needed. The problem is that (apparently) you are using non-blocking I/O on the FIFO, and it doesn't work. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.