mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-26 22:27:42 +08:00
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:
parent
067ec6ca97
commit
f9e426813c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user