mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-08 06:40:28 +00:00
Conf_Test(): check if stdin (and not stdout...) is connected to a terminal.
This commit is contained in:
parent
326607eea1
commit
49f5a4d454
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
static char UNUSED id[] = "$Id: conf.c,v 1.73 2005/03/20 13:54:06 fw Exp $";
|
static char UNUSED id[] = "$Id: conf.c,v 1.74 2005/03/20 15:00:25 fw Exp $";
|
||||||
|
|
||||||
#include "imp.h"
|
#include "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -106,7 +106,7 @@ Conf_Test( void )
|
|||||||
Validate_Config( true );
|
Validate_Config( true );
|
||||||
|
|
||||||
/* If stdin is a valid tty wait for a key: */
|
/* If stdin is a valid tty wait for a key: */
|
||||||
if( isatty( fileno( stdout )))
|
if( isatty( fileno( stdin )))
|
||||||
{
|
{
|
||||||
puts( "OK, press enter to see a dump of your service configuration ..." );
|
puts( "OK, press enter to see a dump of your service configuration ..." );
|
||||||
getchar( );
|
getchar( );
|
||||||
|
Loading…
Reference in New Issue
Block a user