Lorenzo Fiorini:
On Jan 9, 2008 10:53 AM, Alexander S.Kresin <[EMAIL PROTECTED]> wrote:
  But isn't it simpler to use getpid() to determine the pid of a process
instead of forking it ?
Probably yes but I didn't find viable examples.

 As I have understood just now, you need to get the pid from external 
process, not from inside - so the getpid() function can't help.
 Possible solutions are:
 1) using of KVM (kernel virtual memory interface) functions:
kvm_getprocs(), kvm_getenvv(), kvm_getargv(), ...
 2) processing of the output of ps command

Regards,
   Alexander.
 http://kresin.belgorod.su

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to