pg problem under ksh

Guy Harris guy at auspex.auspex.com
Sun Oct 22 06:37:15 AEST 1989


 >> 	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.... 



More information about the Comp.unix.aix mailing list