diff options
| author | hobbs <hobbs> | 2003-10-13 00:59:48 (GMT) |
|---|---|---|
| committer | hobbs <hobbs> | 2003-10-13 00:59:48 (GMT) |
| commit | b79538dd18c6b798634528e29c5a0e1ed76c0fb8 (patch) | |
| tree | c9b07e2a8e8d3250ea769272a62530c229999dfa /unix/tclUnixTest.c | |
| parent | 8a643adb851825245f68531afa3b5a76fff8be01 (diff) | |
| download | tcl-b79538dd18c6b798634528e29c5a0e1ed76c0fb8.zip tcl-b79538dd18c6b798634528e29c5a0e1ed76c0fb8.tar.gz tcl-b79538dd18c6b798634528e29c5a0e1ed76c0fb8.tar.bz2 | |
* unix/tclUnixTest.c (TestalarmCmd): don't bother checking return
value of alarm. [Bug #664755] (english)
Diffstat (limited to 'unix/tclUnixTest.c')
| -rw-r--r-- | unix/tclUnixTest.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c index 2b636b4..f89b820 100644 --- a/unix/tclUnixTest.c +++ b/unix/tclUnixTest.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixTest.c,v 1.14 2003/02/15 22:30:29 kennykb Exp $ + * RCS: @(#) $Id: tclUnixTest.c,v 1.15 2003/10/13 00:59:48 hobbs Exp $ */ #include "tclInt.h" @@ -647,10 +647,7 @@ TestalarmCmd(clientData, interp, argc, argv) Tcl_AppendResult(interp, "sigaction: ", Tcl_PosixError(interp), NULL); return TCL_ERROR; } - if (alarm(sec) < 0) { - Tcl_AppendResult(interp, "alarm: ", Tcl_PosixError(interp), NULL); - return TCL_ERROR; - } + (void)alarm(sec); return TCL_OK; #else Tcl_AppendResult(interp, "warning: sigaction SA_RESTART not support on this platform", NULL); |
