From 2dedd5f419cd9d63fb5b1f76423d096773d3bf6a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 7 Jul 2015 13:36:17 +0200 Subject: src: get rid of EINTR handling for nft_netlink() The only remaining caller that needs this is netlink_dump_ruleset(), that is used to export the ruleset using markup representation. We can remove it and handle this from do_command_export() now that we have a centralized point to build up the object cache. Signed-off-by: Pablo Neira Ayuso --- src/main.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index d6c9cccf..7bbcfc41 100644 --- a/src/main.c +++ b/src/main.c @@ -233,12 +233,7 @@ int nft_run(void *scanner, struct parser_state *state, struct list_head *msgs) ret = -1; goto err1; } -retry: ret = nft_netlink(state, msgs); - if (ret < 0 && errno == EINTR) { - netlink_restart(); - goto retry; - } err1: list_for_each_entry_safe(cmd, next, &state->cmds, list) { list_del(&cmd->list); -- cgit v1.2.3