Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way of getting the process id of my C++ application?

Is there a way of getting the process id of my C++ application? I am using the Carbon framework, but not Cocoa…

like image 205
David Sykes Avatar asked Sep 03 '08 13:09

David Sykes


1 Answers

can you use the getpid() function found in unistd.h ?

osx reference

like image 105
John Boker Avatar answered Sep 24 '22 05:09

John Boker