nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* source: xioexit.c */ |
2 | /* Copyright Gerhard Rieger */ |
||
3 | /* Published under the GNU General Public License V.2, see file COPYING */ |
||
4 | |||
5 | /* this file contains the source for the extended exit function */ |
||
6 | |||
7 | #include "xiosysincludes.h" |
||
8 | #include "compat.h" |
||
9 | #include "xio.h" |
||
10 | #include "error.h" |
||
11 | |||
12 | |||
13 | /* this function closes all open xio sockets on exit, if they are still open. |
||
14 | It must be registered with atexit(). */ |
||
15 | void xioexit(void) { |
||
16 | int i; |
||
17 | |||
18 | diag_in_handler = 0; |
||
19 | Debug("starting xioexit()"); |
||
20 | for (i = 0; i < XIO_MAXSOCK; ++i) { |
||
21 | if (sock[i] != NULL && sock[i]->tag != XIO_TAG_INVALID) { |
||
22 | xioclose(sock[i]); |
||
23 | } |
||
24 | } |
||
25 | Debug("finished xioexit()"); |
||
26 | } |