masqmail
view src/libident/id_close.c @ 310:f10a56dc7481
reworked online_detect to the simpler online_query
Only pipe is supported now. Use
online_query="/bin/cat /path/to/file"
instead of
online_detect=file
online_file=/path/to/file
and
online_query="/path/to/some/script foo"
instead of
online_detect=pipe
online_pipe="/path/to/some/script foo"
See man page masqmail.conf(5) and admin/config-transition.
author | meillo@marmaro.de |
---|---|
date | Sun, 24 Apr 2011 19:14:38 +0200 |
parents | 08114f7dcc23 |
children |
line source
1 /*
2 ** id_close.c Close a connection to an IDENT server
3 **
4 ** Author: Peter Eriksson <pen@lysator.liu.se>
5 */
7 #ifdef NeXT3
8 # include <libc.h>
9 #endif
11 #ifdef HAVE_ANSIHEADERS
12 # include <stdlib.h>
13 # include <unistd.h>
14 #endif
16 #define IN_LIBIDENT_SRC
17 #include "ident.h"
19 int
20 id_close __P1(ident_t *, id)
21 {
22 int res;
24 res = close(id->fd);
25 free(id);
27 return res;
28 }