/* -*-c-*-
*
- * $Id: socket.c,v 1.8 2002/02/22 23:44:44 mdw Exp $
+ * $Id: socket.c,v 1.9 2002/02/23 00:08:00 mdw Exp $
*
* Socket source and target definitions
*
/*----- Revision history --------------------------------------------------*
*
* $Log: socket.c,v $
+ * Revision 1.9 2002/02/23 00:08:00 mdw
+ * Fix stupid bugs from the listen(2) change.
+ *
* Revision 1.8 2002/02/22 23:44:44 mdw
* Call @xfree@ rather than @free@. Add option to change the listen(2)
* parameter.
sso->listen = atoi(sc->d.buf);
if (sso->listen == 0)
error(sc, "argument of `listen' must be positive");
+ token(sc);
CONF_ACCEPT;
}
/* --- Set it to listen for connections --- */
- if (listen(fd, 5))
+ if (listen(fd, ss->o.listen))
error(sc, "couldn't listen on socket: %s", strerror(errno));
}