return to caller instead of exit(2) trunk
authorchristos <christos@NetBSD.org>
Thu, 14 Jun 2018 02:44:16 +0000
branchtrunk
changeset 319847 72b3b2c6ad42
parent 319846 1e15eae476bf
child 319848 4f1b37a0a9a0
return to caller instead of exit(2)
bin/expr/expr.y
--- a/bin/expr/expr.y	Wed Jun 13 23:27:48 2018 +0000
+++ b/bin/expr/expr.y	Thu Jun 14 02:44:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: expr.y,v 1.41 2018/06/13 17:35:15 kamil Exp $ */
+/* $NetBSD: expr.y,v 1.42 2018/06/14 02:44:16 christos Exp $ */
 
 /*_
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 %{
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: expr.y,v 1.41 2018/06/13 17:35:15 kamil Exp $");
+__RCSID("$NetBSD: expr.y,v 1.42 2018/06/14 02:44:16 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -453,6 +453,6 @@
 
 	av = argv + 1;
 
-	exit(yyparse());
+	return yyparse();
 	/* NOTREACHED */
 }