If fork() fails, newptycmd() could close random descriptor. Pretty rare, I admit, but not improbable. -andrej Have a nice DOS! B >>