| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Timing out a REXX progra |
-=> Quoting Mike Bilow to Denis Tonn <=-
DT> On the other hand, REXX registers some exception handlers of
DT> it's own, and these may be what it uses to detect and drive
DT> a halt condition. It would take a debugging session to be
DT> sure.
MB> This is the key question. I either knew or figured out all of the
MB> other stuff. If I could depend upon the other DLL (RXFTP, actually)
MB> timing out, then I would not need this watchdog DLL. The
MB> documentation says that RexxSetHalt() sets a flag somewhere inside
MB> Rexx, and the implication was that this would not be tested until the
MB> other DLL returned from its called function, so this would not do what
MB> When I get a chance, what I was going to do was test by passing the
MB> main thread of execution into SysSleep() and seeing whether
MB> RexxSetHalt() works from the watchdog thread. I know that hitting
MB> Ctrl-Break will terminate a Rexx script even if it is in a DLL
MB> function such as SysSleep() or FtpGet(), so it is entirely possible
MB> that RexxSetHalt() will work.
RexxSetHalt() will not kill a call to SysSleep. The Rexx program will
die as soon as it returns from SysSleep.
I just tested it. I use RexxSetHalt() with Rexx scripts running from my
term program when Ctrl-Break is pressed.
Phil
Fido: 1:124/8014.1 | Internet: phil.crown{at}bluecafe.com
--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 214-250-4479 * (1:124/1208)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 124/1208 1 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.