get process id

Fairlight fairlite at fairlite.com
Sun Oct 10 10:48:33 PDT 2004


On Sun, Oct 10, 2004 at 11:04:15AM -0400, Kenneth Brody, the prominent pundit,
witicized:
> Scott Nelson wrote:
> > 
> > Having a brain clog here.
> > 
> > SCO OpenServer 5.06, fP 5
> > 
> > I need to get the process id of a filepro program and use it in a variable
> > while in the program.  I know this has been discussed in the past, but
> > there is a memory leak here....
> 
> Must it really be the PID of the filePro program, or just a unique
> number?  (ie: would the PID of a child process called via USER be
> sufficient?)

Keeping in mind that the PID itself is not unique unless bound to a date
and time, since PID-space recycles at around 32000-ish on most 32bit
operating systems, and even some 64bit ones (Solaris 7 and 8 come to mind).

Ken, does USER directly exec() or does it use system()?

mark->
-- 
Bring the web-enabling power of OneGate to -your- filePro applications today!

Try the live filePro-based, OneGate-enabled demo at the following URL:
               http://www2.onnik.com/~fairlite/flfssindex.html


More information about the Filepro-list mailing list