Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
> Hi there,
>
>
> I have a need of get the UNIX process ID of my running 4GL program.
>
> Anyone has a known answer?
>
> Thanks
>
>
> Tim LIm
>
>
>
I just do this:
#include <unistd.h>
int getpid_ix(int numargs)
{
pid_t p_id;
p_id = getpid();
retint((long) p_id);
return(1);
}
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.