HOW DO PROCESSRO ID????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try this:

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main (void)
{
	printf("PID = %d\n", getpid());	/* prints the PID of the current process */
	printf("PPID = %d\n",getppid());	/* prints the PIS of the parent proicess */
	exit(EXIT_SUCCESS);
}

On Thursday 14 February 2002 08:27 am, you wrote:
Can any one tell me , how to identify the Process ID using "C"???


Kvim.



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

-- 
rm -rf /bin/laden
Do it now and often!





[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux