From f9e426813ca0d6150eb1c36878c8a019f667a06a Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 3 Oct 2020 15:54:27 -0700 Subject: [PATCH] Do not complain about fcntl(F_SETOWN) failing On WSL1, fcntl(F_SETOWN) will fail and this would report an error. Suppress this error message since it is not very interesting. The effect is to disable real-time universal variable propagation. --- src/env_universal_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp index 012151e46..d509b5f3f 100644 --- a/src/env_universal_common.cpp +++ b/src/env_universal_common.cpp @@ -1373,7 +1373,7 @@ class universal_notifier_sigio_t final : public universal_notifier_t { return autoclose_fd_t{}; } if (fcntl(pipe.fd(), F_SETOWN, getpid()) == -1) { - wperror(L"fcntl(F_SETOWN)"); + FLOG(uvar_file, "fcntl(F_SETOWN) failed, universal variable notifications disabled"); return autoclose_fd_t{}; } #ifdef F_SETSIG