From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Tue, 27 Aug 2002 04:35:37 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 310 ************************************************** Monday 26 August 2002 Number 310 ************************************************** Subjects for today 1 Re: Basic OS/2 support : rsteiner at visi.com (Richard Steiner) 2 spawn : Dave Saville" **= Email 1 ==========================** Date: Tue, 27 Aug 2002 01:05:10 -0500 From: rsteiner at visi.com (Richard Steiner) Subject: Re: Basic OS/2 support Here in list.os2-unix, Jack Troughton spake unto us, saying: >Dave Webster wrote: >> Thanks, Jack. You text format was bad so I had a hard time reading your >> mail. > >You're using the microsoft mail server. It's support for other >codepages/charsets blows, to put it mildly. How's this one? Actually, the "quoted text" portion of your first posting was wrapping here as well (Yarn) because it exceeded 80 characters in length. -- -Rich Steiner >>>---> http://www.visi.com/~rsteiner >>>---> Eden Prairie, MN OS/2 + BeOS + Linux + Win95 + DOS + PC/GEOS = PC Hobbyist Heaven! :-) Applications analyst/designer/developer (13 yrs) seeking employment. See web site in my signature for current resume and background. **= Email 2 ==========================** Date: Tue, 27 Aug 2002 12:10:29 +0100 (BST) From: "Dave Saville" Subject: spawn Hi all Don't know if any of you saw my problems on the comp os2 programming ng but here is a summary. Anyone through any light on this? On Mon, 26 Aug 2002 23:18:55 +0100 (BST), Dave Saville wrote: >On 26 Aug 2002 21:10:21 GMT, Herbert Rosenau wrote: > >>On Mon, 26 Aug 2002 17:30:58 UTC, "Dave Saville" >> wrote: >> >>>On Mon, 26 Aug 2002 09:13:36 +0100 (BST), Dave Saville wrote: >>> >>>>Can anyone see anything wrong with this code? >>>> >>>> spawnvp(P_DETACH | P_DEFAULT | P_BACKGROUND | P_MINIMIZE, >>>>argv[0], argv); >>>> >>>>Its called in a loop in some of my code and eventually stops working. >>>>Restarting the main program cures it, so I guess I am running out of >>>>something. All I can see in the docs is that return codes can fill up >>>>memory unless you use wait() - but it also says that does not apply to >>>>P_DETATCH. >>> >>>Followup - I have discovered that it craps out after 255 spawnvp's - >>>very suspicious in my book :-) >> >>What says THREADS= in config.sys. >> >>Set it to 1024 or higher. The limit is 4095. >> > >it is1024 > >>How many processes and threads are active? > >Apart from the system, damn all - cron type program, dhcpmon, in-joy >firewall > >However, I have changed the spawn call to use P_SESSION | P_UNRELATED >instead of P_DETACH and its still running after 280 spawns - I will see >if its still going in the morning :-) Yup - still going. However...... P_SESSION | P_UNRELATED consistently returns 1 whereas the docs say 0. P_UNRELATED on its own does return 0. Both do actually spawn the required task. TIA -- Regards Dave Saville Please note new email address dave.saville at ntlworld.com