Lines Matching refs:linger
86 static void linger_option(); /* execute "linger time" option */
123 "linger", linger_option, NEED_ARG,
322 /* linger_option - set the socket linger time (Marc Boucher <marc@cam.org>) */
330 struct linger linger;
333 if (sscanf(value, "%d%c", &linger.l_linger, &junk) != 1
334 || linger.l_linger < 0)
335 tcpd_jump("bad linger value: \"%s\"", value);
337 linger.l_onoff = (linger.l_linger != 0);
338 if (setsockopt(request->fd, SOL_SOCKET, SO_LINGER, (char *) &linger,
339 sizeof(linger)) < 0)
340 tcpd_warn("setsockopt SO_LINGER %d: %m", linger.l_linger);