MXS-1582 Close listener sockets on exit

If the listener socket refers to a Unix domain socket, the socket file
will be deleted as well.
This commit is contained in:
Johan Wikman
2017-12-28 15:31:32 +02:00
parent 6f3a580168
commit 140620a366
3 changed files with 114 additions and 48 deletions

View File

@ -182,6 +182,7 @@ typedef struct dcb
struct dcb *tail; /**< Last DCB in owning thread's list */
} thread;
uint32_t n_close; /** How many times dcb_close has been called. */
char *path; /** If a Unix socket, the path it was bound to. */
skygw_chk_t dcb_chk_tail;
} DCB;