throw PDNSException("Unable to fork for coprocess: "+stringerror());
else if(d_pid>0) { // parent speaking
close(d_fd1[0]);
- Utility::setCloseOnExec(d_fd1[1]);
+ setCloseOnExec(d_fd1[1]);
close(d_fd2[1]);
- Utility::setCloseOnExec(d_fd2[0]);
+ setCloseOnExec(d_fd2[0]);
if(!(d_fp=fdopen(d_fd2[0],"r")))
throw PDNSException("Unable to associate a file pointer with pipe: "+stringerror());
if( d_timeout)
//! Drops the program's user privileges.
static void dropUserPrivs( int uid );
-
- //! Marks the socket to be closed on exec().
- static bool setCloseOnExec ( Utility::sock_t socket );
-
//! Sets the socket into Bind-any mode
static void setBindAny ( int af, Utility::sock_t socket );