| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: spawn(P_NOWAIT..) / wait()??? |
Hi Phil, PC> Right now, I'm starting a thread with _beginthread(), then wait() for PC> the return code from spawn( P_SESSION, ...) which seems to be working PC> fine, although I don't think I would notice if it was leaking memory PC> or not. :) sounds like overkill to me. Mark did point you in the right direction with 'signal(SIGCLD, handler);'. RO> And if you only want to run a DOS-program, why not use 'system'? PC> I thought it would be more effecient to use spawn*. sure, but system *is* available to all OS/2 C-compilers (and is much easier to use), whereas spawn may not. cu/2 Roland ... I program like a MAN. I use COPY CON PROGRAM.EXE --- Blue Wave/Max v2.12 OS/2 [NR]* Origin: CCWN: Leistung ueberzeugt !!! (2:246/1401) SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955 SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809 @PATH: 246/20 50 24/999 240/5002 5500 396/1 270/101 105/103 42 712/515 @PATH: 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™.