| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | OS/2 EXEs with shared code? |
CS> There is no "sticky bit" in OS/2, but it is easy enough to simulate CS> this simply by blocking a thread on a named semaphore or some other CS> IPC object so that you can cause the process to terminate if you CS> want to release the memory. AL> Care to write me a sample? I haven't actually written anything to do this myself, but basically you would just add a bit of code to your program to support a switch that would do nothing but keep the EXE loaded by blocking a single thread on an event semaphore. Then write support for another switch that will trigger that event semaphore so you can have a reasonable way of terminating the first instance of the program. AL> I may want to have for instance Maximus stay in memory AL> all the time, so the BBS is started faster when a user AL> is put through by the mailer.... This is certainly doable if you have the source code for the BBS. I'd have to think about how to do it without the BBS source code. Perhaps you could start the progress using another program that runs it as a debugged child using DosDebug() and then stop it shortly after it starts? That seems a bit ugly to me, however. AL> Could do that by running the mailer and BBS in AL> separate processes, but a 'sticky bit' equivalent AL> would be just as effective, and easier to set up. Maximus and the mailer already run in separate processes, but they run in the same session. Why not just leave a local copy of Maximus running in the background? --- Maximus/2 2.01wb* Origin: OS/2 Connection {at} Mira Mesa, CA (1:202/354) SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430 SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 202/354 301 1 209/710 209 280/1 396/1 3615/50 229/2 @PATH: 12/2442 711/409 54/54 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™.