diff options
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index 71e3e7b71..5bb2d7226 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1543,11 +1543,13 @@ void debug(const char* msg, ...) { if (!flag_debug) return; + int err = errno; va_list args; va_start(args, msg); vfprintf(stderr, msg, args); va_end(args); fflush(stderr); + errno = err; } void debug_dump_data(const char* data, int length) |
