diff options
Diffstat (limited to 'src/common/socket-utils.c')
-rw-r--r-- | src/common/socket-utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/socket-utils.c b/src/common/socket-utils.c index 4f7d957..236ba91 100644 --- a/src/common/socket-utils.c +++ b/src/common/socket-utils.c @@ -99,3 +99,9 @@ int mrp_reject_connection(int sock, struct sockaddr *addr, socklen_t *alen) return (fd >= 0 ? 0 : -1); } + +MRP_EXIT static void mrp_close_reserved_fd() +{ + if (reject_fd > 0) + close(reject_fd); +} |