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.
This commit is contained in:
ridiculousfish 2020-10-03 15:54:27 -07:00
parent 067ec6ca97
commit f9e426813c

View file

@ -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