Writing to stdin just doesn't seem right. Also, why not just FILE *tty = fopen(/dev/stderr, w); if you worried about it having been closed by the crashed parent?

This commit is contained in:
Steve Checkoway
2004-08-26 21:30:59 +00:00
parent 1771747c0c
commit a2fb826774
@@ -358,7 +358,7 @@ static void child_process()
* write to /dev/tty instead. */
FILE *tty = fopen( "/dev/tty", "w" );
if( tty == NULL )
tty = stdin;
tty = stderr;
fprintf(tty,
"\n"