summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-26 14:06:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-26 14:06:21 (GMT)
commita8155b8bd45a4584cf024465e75331a29edda9b8 (patch)
tree408169a8521ccf3332e14d8317bdf78435ed287e /unix/tclUnixNotfy.c
parent22a21905e22a2ad6ae86c293bac257eb7db9e68a (diff)
downloadtcl-tip_458_experiment.zip
tcl-tip_458_experiment.tar.gz
tcl-tip_458_experiment.tar.bz2
Experiment, does this work? Still to be tested: Eliminate variable triggerPipeVal/eventFdVal (just use 'char dummy'), and just read/write 1 byte to triggerEventFd in stead of 8. tip_458_experiment
Experiment failed: eventfd's always should be read/written 8 bytes.
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r--unix/tclUnixNotfy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index 5bc753a..c6725c1 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -123,9 +123,7 @@ Tcl_AlertNotifier(
#else
ThreadSpecificData *tsdPtr = clientData;
#if defined(NOTIFIER_EPOLL) && defined(HAVE_EVENTFD)
- uint64_t eventFdVal = 1;
- if (write(tsdPtr->triggerEventFd, &eventFdVal,
- sizeof(eventFdVal)) != sizeof(eventFdVal)) {
+ if (write(tsdPtr->triggerEventFd, "", 1) != 1) {
Tcl_Panic("Tcl_AlertNotifier: unable to write to %p->triggerEventFd",
(void *)tsdPtr);
#else