diff options
author | nijtmans <nijtmans> | 2010-01-29 09:38:47 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-01-29 09:38:47 (GMT) |
commit | f3131e02a818a4647fb118dab1f89a77a05005c0 (patch) | |
tree | b732fbacb9d699666596922795ff884968b67775 /unix/tclUnixNotfy.c | |
parent | 4d4786ddbcfbc51bf7d05c670806ab3f9a045c56 (diff) | |
download | tcl-f3131e02a818a4647fb118dab1f89a77a05005c0.zip tcl-f3131e02a818a4647fb118dab1f89a77a05005c0.tar.gz tcl-f3131e02a818a4647fb118dab1f89a77a05005c0.tar.bz2 |
Use correct TCL_LL_MODIFIER for CYGWIN.
Formatting (all backported from HEAD)
Fix gcc 4.4 warning: ignoring return value of ‘write’,
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r-- | unix/tclUnixNotfy.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index 916951f..c1b5fd8 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixNotfy.c,v 1.34.2.1 2009/04/10 18:02:42 das Exp $ + * RCS: @(#) $Id: tclUnixNotfy.c,v 1.34.2.2 2010/01/29 09:38:47 nijtmans Exp $ */ #include "tclInt.h" @@ -292,7 +292,9 @@ Tcl_FinalizeNotifier( * 4139] [Bug: 1222872] */ - write(triggerPipe, "q", 1); + if (write(triggerPipe, "q", 1) != 1) { + Tcl_Panic("Tcl_FinalizeNotifier: unable to write q to triggerPipe"); + } close(triggerPipe); while(triggerPipe >= 0) { Tcl_ConditionWait(¬ifierCV, ¬ifierMutex, NULL); @@ -771,7 +773,9 @@ Tcl_WaitForEvent( waitingListPtr = tsdPtr; tsdPtr->onList = 1; - write(triggerPipe, "", 1); + if (write(triggerPipe, "", 1) != 1) { + Tcl_Panic("Tcl_WaitForEvent: unable to write to triggerPipe"); + } } FD_ZERO(&(tsdPtr->readyMasks.readable)); @@ -801,7 +805,9 @@ Tcl_WaitForEvent( } tsdPtr->nextPtr = tsdPtr->prevPtr = NULL; tsdPtr->onList = 0; - write(triggerPipe, "", 1); + if (write(triggerPipe, "", 1) != 1) { + Tcl_Panic("Tcl_WaitForEvent: unable to write to triggerPipe"); + } } #else |