diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-04-15 01:31:41 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-04-19 14:54:37 +1000 |
commit | b777ec0ab419677a4675b280dfe6d02fc2ad5da2 (patch) | |
tree | 954de1742268165f3e9f6f49c570773fe2281259 | |
parent | 7972a7d0b62f7041151db74e6a00a50d67a072f5 (diff) | |
download | jimtcl-b777ec0ab419677a4675b280dfe6d02fc2ad5da2.zip jimtcl-b777ec0ab419677a4675b280dfe6d02fc2ad5da2.tar.gz jimtcl-b777ec0ab419677a4675b280dfe6d02fc2ad5da2.tar.bz2 |
vwait: Fix an arg problem with -signal
'vwait -signal done' should wait for variable 'done' to change
but instead waits for a variable '-signal' to changed.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim-eventloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jim-eventloop.c b/jim-eventloop.c index b9e0e97..84cba71 100644 --- a/jim-eventloop.c +++ b/jim-eventloop.c @@ -604,7 +604,7 @@ static int JimELVwaitCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv) break; } Jim_Obj *currValue; - currValue = Jim_GetGlobalVariable(interp, argv[1], JIM_NONE); + currValue = Jim_GetGlobalVariable(interp, argv[1 + signal], JIM_NONE); /* Stop the loop if the vwait-ed variable changed value, * or if was unset and now is set (or the contrary) * or if a signal was caught |