Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!genrad!mit-eddi!mit-vax!eagle!harpo!seismo!hao!hplabs!sri-unix!chris.umcp-cs@udel-relay From: chris.umcp-cs%udel-relay@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: Bug with two pipes to a process Message-ID: <1822@sri-arpa.UUCP> Date: Mon, 6-Jun-83 17:42:08 EDT Article-I.D.: sri-arpa.1822 Posted: Mon Jun 6 17:42:08 1983 Date-Received: Wed, 8-Jun-83 15:44:12 EDT Lines: 27 From: Chris TorekFrom: ihnp4!arizona!whm@ucb-vax ... However, for some programs that produced a line of output that was not newline terminated, the data on the "last" line would never appear. Two programs in point are ucbmail and ex. ... The problem only occurred when a write pipe was also open to the program. All streams were unbuffered. BTW-This was on 4.1bsd. I don't know about ucbmail, but ex seems to have great troubles when it's not connected to a terminal. It wants to stty, and when it fails, thinks that is some other error. If I run "ex | cat -u" I get "missing lhs" (!). It may just be someone trying to get around stdio (ex moves mountains to do this). I've since decided to use a more sophisticated IPC mechanism, such as mpx files or the new Berkeley IPC stuff, but I'm still curious about the bug. Anybody have any ideas? Probably someone didn't consider that you might want to use pipes. - Chris seismo!umcp-cs!chris chris.umcp-cs@UDel-Relay