summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-03-08 14:50:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-03-08 14:50:44 (GMT)
commitdab82cc3218cc10696eb1dc0ad77009eddf6c576 (patch)
tree4f2ff346e45c31ca527e7e72c284ea1eb1d3e296 /unix
parent8137faed0f584ff906bbb25c471ebbfd9953dd1f (diff)
downloadtcl-dab82cc3218cc10696eb1dc0ad77009eddf6c576.zip
tcl-dab82cc3218cc10696eb1dc0ad77009eddf6c576.tar.gz
tcl-dab82cc3218cc10696eb1dc0ad77009eddf6c576.tar.bz2
minor simplification
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixNotfy.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index eb3e8ba..d7bbabe 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -127,8 +127,7 @@ Tcl_AlertNotifier(
#endif /* TCL_THREADS */
#else
ThreadSpecificData *tsdPtr = clientData;
-#ifdef NOTIFIER_EPOLL
-#ifdef HAVE_EVENTFD
+#if defined(NOTIFIER_EPOLL) && defined(HAVE_EVENTFD)
eventFdVal = 1;
if (write(tsdPtr->triggerEventFd, &eventFdVal,
sizeof(eventFdVal)) != sizeof(eventFdVal)) {
@@ -136,14 +135,9 @@ Tcl_AlertNotifier(
(void *)tsdPtr);
#else
if (write(tsdPtr->triggerPipe[1], "", 1) != 1) {
- Tcl_Panic("Tcl_AlertNotifier: unable to write to %p->triggerEventFd",
- (void *)tsdPtr);
-#endif
-#else
- if (write(tsdPtr->triggerPipe[1], "", 1) != 1) {
Tcl_Panic("Tcl_AlertNotifier: unable to write to %p->triggerPipe",
(void *)tsdPtr);
-#endif /* NOTIFIER_EPOLL */
+#endif /* NOTIFIER_EPOLL && HAVE_EVENTFD */
}
#endif /* NOTIFIER_SELECT */
}