| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | OS/2 Shutdown |
Paul Beverly{at}1:376/32 wrote in OS2PROG the following to all:
PB> Does anyone know of a way for a program to capture the fact that a
PB> SHUTDOWN has been initiated?
PB> What I would like to do is once a SHUTDOWN has started have a program
PB> which is running to perform something before the SHUTDOWN closes that
PB> program.
I'm not sure, what your problem is, but if it's one of your _own_ programs,
you can do (nearly) everything you want, in an exitlist-function you
registered with your program. IMHO, the registered list of exit-functions
is _always_ executed, before a process really ends. Even in case of traps, etc
Personally i use this mechanism in an distributed application to tell all
other machines (via NETBios) that one of them has died...
BTW: ShutDown will _never_ complete, until exitlist-processing of _all_
processes is complete.
PB> Thanks,
hope, it's usefull...
Bye/2
Stephan
"Microsoft, MS, MS-DOS, Windows und Bug sind eingetragene
Warenzeichen der Microsoft Corporation"
(c) 1992-1996 by Peter Mandrella
--- CrossPoint v3.11 R
* Origin: Are you sure? (y/n) y ...SCH**SSE!! (2:2426/5060.58)SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 711/409 410 413 430 808 809 SEEN-BY: 711/934 955 712/311 407 505 506 517 623 624 704 841 713/317 800/1 @PATH: 2426/5000 2001 2432/200 2433/1200 225 270/101 712/624 711/808 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™.