/* -*-c-*-
*
- * $Id: privconn.c,v 1.1 2003/11/29 20:36:07 mdw Exp $
+ * $Id: privconn.c,v 1.3 2004/04/08 01:36:25 mdw Exp $
*
* Making privileged connections
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: privconn.c,v $
- * Revision 1.1 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <assert.h>
pid_t kid;
int fd[2];
- if (kidfd != -1)
+ if (kidfd != -1 || DA_LEN(&cv) == 0)
return;
if (socketpair(PF_UNIX, SOCK_STREAM, 0, fd) < 0)
die(1, "couldn't create privconn socketpair: %s", strerror(errno));