TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Andrew Clegg
from: Phil Crown
date: 1995-03-01 18:10:08
subject: spawn(P_NOWAIT..) / wait()???

PC> If I have to wait() after spawning a P_NOWAIT or P_SESSION program

 AC> Perfect sense -- it seems like a valid point.
 
 PC> So, my problem is, what good is it to use spawn*(P_NOWAIT ...) if I
 PC> have to wait() for the return code to avoid filling up memory?

 AC> Idea -- start a thread to wait() for the child process to terminate
 AC> while your main thread gets on with business. 
 AC> Andrew.

I thought about using a thread, seems like a good idea. :-)

Phil


--- Blue Wave/Max v2.20l OS2 Beta
* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)
SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 942
SEEN-BY: 711/955 712/407 515 628 704 713/888 800/1 7877/2809
@PATH: 124/1208 1204 1 396/1 3615/50 105/103 42 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™.