Mesa (master): Revert "Make mklib propogate all errors"

Dan Nicholson dbn at kemper.freedesktop.org
Thu Feb 18 22:50:47 UTC 2010


Module: Mesa
Branch: master
Commit: 79cc455cb8f2da1155e4d7fd4ddb9c1914ea5889
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=79cc455cb8f2da1155e4d7fd4ddb9c1914ea5889

Author: Dan Nicholson <dbn.lists at gmail.com>
Date:   Thu Feb 18 14:48:53 2010 -0800

Revert "Make mklib propogate all errors"

This reverts commit d6f55492af3cb82b0113fe6beac0f3494b6e2956.

It's both not portable and not safe to trap & exit on ERR. This will
need to use a more invasive approach that tests return code only for
selected, important commands.

---

 bin/mklib |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/bin/mklib b/bin/mklib
index fa0c82b..c4b3478 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -25,14 +25,6 @@
 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 
-# propagate any errors
-function errtrap {
-    es=$?
-    exit $es
-}
-trap errtrap ERR
-
-
 # Given a list of files, look for .a archives and unpack them.
 # Return the original list of files minus the .a files plus the unpacked files.
 # first param:  name of a temp directory (to be deleted when finished)




More information about the mesa-commit mailing list