aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tap.c')
-rw-r--r--tap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tap.c b/tap.c
index e3ea61c..9d1344b 100644
--- a/tap.c
+++ b/tap.c
@@ -1149,10 +1149,8 @@ void tap_sock_reset(struct ctx *c)
{
info("Client connection closed%s", c->one_off ? ", exiting" : "");
- if (c->one_off) {
- fsync_pcap_and_log();
- _exit(EXIT_SUCCESS);
- }
+ if (c->one_off)
+ passt_exit(EXIT_SUCCESS);
/* Close the connected socket, wait for a new connection */
epoll_del(c->epollfd, c->fd_tap);