TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Phil Crown
from: Mike Bilow
date: 1996-04-16 16:52:16
subject: Timing out a REXX progra

Phil Crown wrote in a message to Mike Bilow:

 MB> When I get a chance, what I was going to do was test by passing 
 MB> the main thread of execution into SysSleep() and seeing whether 
 MB> RexxSetHalt() works from the watchdog thread.  I know that 
 MB> hitting Ctrl-Break will terminate a Rexx script even if it is 
 MB> in a DLL function such as SysSleep() or FtpGet(), so it is 
 MB> entirely possible that RexxSetHalt() will work. 

 PC> RexxSetHalt() will not kill a call to SysSleep.  The Rexx 
 PC> program will die as soon as it returns from SysSleep.

 PC> I just tested it.  I use RexxSetHalt() with Rexx scripts 
 PC> running from my term program when Ctrl-Break is pressed.

Then I guess it is back to DosKillProcess().
 
-- Mike


--- 
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
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: 323/107 170/400 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™.