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                  [EMAIL PROTECTED]
645 Howard St.              [EMAIL PROTECTED]
San Francisco, CA 

> -----Original Message-----
> From: Doug MacEachern [mailto:[EMAIL PROTECTED]
> 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?


  • isatty? Doug MacEachern
    • Ryan Bloom

Reply via email to