From 88b8e2a9d5f2c0d86f7bd030c652861849417489 Mon Sep 17 00:00:00 2001 From: Jeff Smith Date: Mon, 10 Apr 2017 10:01:36 -0500 Subject: FLEX_EXIT() is the preferred way to exit flex --- src/filter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filter.c b/src/filter.c index 33e5ced..71f3635 100644 --- a/src/filter.c +++ b/src/filter.c @@ -176,7 +176,7 @@ clearerr(stdin); if ((r = chain->filter_func (chain)) == -1) flexfatal (_("filter_func failed")); - exit (0); + FLEX_EXIT (0); } else { execvp (chain->argv[0], @@ -185,7 +185,7 @@ clearerr(stdin); chain->argv[0]); } - exit (1); + FLEX_EXIT (1); } /* Parent */ @@ -324,7 +324,7 @@ int filter_tee_header (struct filter *chain) while (wait (0) > 0) ; - exit (0); + FLEX_EXIT (0); return 0; } -- cgit v1.2.3