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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user