apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Bloom" <...@covalent.net>
Subject RE: isatty?
Date Fri, 18 Jan 2002 16:42:08 GMT
This should be easy to implement on Windows and Unix.  I would imagine
that it can also be done on BeOS and OS/2, so I would say let's get this
implemented ASAP.

Ryan

----------------------------------------------
Ryan Bloom                  rbb@covalent.net
645 Howard St.              rbb@apache.org
San Francisco, CA 

> -----Original Message-----
> From: Doug MacEachern [mailto:dougm@covalent.net]
> Sent: Thursday, January 17, 2002 6:27 PM
> To: dev@apr.apache.org
> Subject: isatty?
> 
> i'd like to remove the global counter hack from mod_ssl that only
reads
> the passphrase on the first module init.  currently does so because
that
> is the only time httpd is still attached to the tty, but if
> SSLPassPhraseDialog is exec: rather than built in, a tty is not
required
> to read the passphrase.  but in the case of builtin, i need to know if
> stdout is connected to a tty.  i'm guessing that
isatty(fileno(stdout))
> is not portable.  thinking we'll need something like:
> 
> apr_file_t *out;
> apr_file_open_stdout(&out, pool);
> 
> if (apr_file_isatty(out)) { ... }
> 
> thoughts?



Mime
View raw message