How can a pro开发者_JAVA百科gram on Linux discover the process id of itself? Is there something in /proc/self that will do the trick?
getpid(2)
.
Try running on your terminal: man getpid
How can a pro开发者_JAVA百科gram on Linux discover the process id of itself? Is there something in /proc/self that will do the trick?
getpid(2)
.
Try running on your terminal: man getpid
精彩评论