RE: setting FD_CLOEXEC on BIO sockets

2009-07-23 Thread Bailey, Darragh
> -Original Message- > From: owner-openssl-us...@openssl.org > [mailto:owner-openssl-us...@openssl.org] On Behalf Of David Schwartz > Sent: 22 July 2009 00:03 > To: openssl-users@openssl.org > Subject: RE: setting FD_CLOEXEC on BIO sockets > > You should not issue a 'close' unless you wa

RE: setting FD_CLOEXEC on BIO sockets

2009-07-23 Thread Bailey, Darragh
> After the regular BIO stuff you should be able to get the fd > (BIO_get_fd(BIO *bio, int *fd)) and just set the flag with fcntl. You > might want to have a look at BIO_set_flags first. > __ > OpenSSL Project

setting FD_CLOEXEC on BIO sockets

2009-07-21 Thread Bailey, Darragh
Running into a problem at here at work where we have a daemon process that was converted to use BIO's for SSL support. Since then we are occassionally seeing a problem where if a subprocess executed manages to hang, closing down the daemon and restarting it will run into a problem with binding