aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/env_universal_common.cpp
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-08-24 18:45:57 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-08-24 18:45:57 +0800
commitb0504f773903a40f20f6b3db78248796e4b60d7d (patch)
tree347d2c017de22d62507aa29ccefcbb45b8689bef /src/env_universal_common.cpp
parent67ed58b0baa3aed96daca97a9263e55964fef49f (diff)
env_universal_common: always pick shmem strategy on Cygwin
Cygwin FIFOs do not support more than one reader, so avoid them on this platform. An autoconf feature test would be helpful but is tricky to write. Closes #2152.
Diffstat (limited to 'src/env_universal_common.cpp')
-rw-r--r--src/env_universal_common.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp
index d29381f5..aa87ed00 100644
--- a/src/env_universal_common.cpp
+++ b/src/env_universal_common.cpp
@@ -1626,6 +1626,8 @@ universal_notifier_t::notifier_strategy_t universal_notifier_t::resolve_default_
}
#if FISH_NOTIFYD_AVAILABLE
return strategy_notifyd;
+#elif defined(__CYGWIN__)
+ return strategy_shmem_polling;
#else
return strategy_named_pipe;
#endif