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 is

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

RE: setting FD_CLOEXEC on BIO sockets

2009-07-21 Thread David Schwartz
Darragh Bailey wrote: > 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 to the port. > My suspicion is that when we create the socket connections to > listen on usi

Re: setting FD_CLOEXEC on BIO sockets

2009-07-21 Thread Fred Keet
Bailey, Darragh wrote: 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