diff options
author | Jeff Smith <whydoubt@gmail.com> | 2017-04-10 10:01:36 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2017-05-02 15:31:05 -0400 |
commit | 88b8e2a9d5f2c0d86f7bd030c652861849417489 (patch) | |
tree | f89830d2e91d651cb3c690fcaa7b4b6db106e65d /src/filter.c | |
parent | 47d6a453457f0c33f9fd0c4e45ada1d5bb1e20ca (diff) |
FLEX_EXIT() is the preferred way to exit flex
Diffstat (limited to 'src/filter.c')
-rw-r--r-- | src/filter.c | 6 |
1 files 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; } |