Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-06-08 23:44:33 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-06-08 23:44:33 +0400
commitc84bbb2d8f960ad66ed2b6737b325002c714338a (patch)
treed18a495bd01737267d0cd767e24b2d9e4e64bae9 /winsup/cygwin/cygerrno.h
parent590f450aa9b3fe665bc6824ebde118b18f79c71b (diff)
* cygerrno.h (save_errno::~save_errno): Set errno directly to avoid
flooding debug output.
Diffstat (limited to 'winsup/cygwin/cygerrno.h')
-rw-r--r--winsup/cygwin/cygerrno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygerrno.h b/winsup/cygwin/cygerrno.h
index e3b1011ba..e6ec7c556 100644
--- a/winsup/cygwin/cygerrno.h
+++ b/winsup/cygwin/cygerrno.h
@@ -44,7 +44,7 @@ class save_errno
save_errno (int what) {saved = get_errno (); set_errno (what); }
void set (int what) {set_errno (what); saved = what;}
void reset () {saved = get_errno ();}
- ~save_errno () {set_errno (saved);}
+ ~save_errno () {errno = _impure_ptr->_errno = saved;}
};
extern const char *__sp_fn;