mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 13:01:21 -03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user