From 125d4fdf2e575b53d7c36b5147cf34c99516856f Mon Sep 17 00:00:00 2001 From: taiyu Date: Tue, 27 Mar 2018 19:33:59 -0700 Subject: restore errno --- common/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/log.c b/common/log.c index 877534c8..1b46d58f 100644 --- a/common/log.c +++ b/common/log.c @@ -153,6 +153,7 @@ void sway_log_errno(log_importance_t verbosity, char* format, ...) { } fprintf(stderr, "\n"); } + errno = errsv; } bool _sway_assert(bool condition, const char *filename, int line, const char* format, ...) { -- cgit v1.2.3