summaryrefslogtreecommitdiffstats
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)
commitf55296bdf01aad11441825c162f074824f3031b5 (patch)
tree4f2ff346e45c31ca527e7e72c284ea1eb1d3e296
parentbed000d72e4b356700d7e2c85ca69971331f827a (diff)
downloadtcl-f55296bdf01aad11441825c162f074824f3031b5.zip
tcl-f55296bdf01aad11441825c162f074824f3031b5.tar.gz
tcl-f55296bdf01aad11441825c162f074824f3031b5.tar.bz2
minor simplification
-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 */
}