Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.aix Subject: Re: pg problem under ksh Message-ID: <2552@auspex.auspex.com> Date: 21 Oct 89 20:37:15 GMT References: <1156@msa3b.UUCP> <185@eliza.edvvie.at> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 13 >> pg: cannot reopen stdout >> > >Hi Kevin! I've experienced the same problem. Its not related to pg in any >way. I suspect ksh closes the wrong files under certain circumstances >before forking and execing a child proc for piping. In the S5R3.1 source, that message comes if "pg" can't do an "freopen" on "stdout" with "/dev/tty". I suspect this dates back to S5R2. Perhaps "ksh" is setting things up so that the child process doesn't have a controlling tty? Seems more likely than some problem with some file getting improperly closed....