Created
May 16, 2011 00:19
-
-
Save dacresni/973708 to your computer and use it in GitHub Desktop.
suggestion for getting process info on BSD and other posix non linux OS (like mac os
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
you may be able to get BSD portability (with macos for free) if you use sysctl instead of the NS namespace like NSGetExecutablePath. could you use sysctl? kern.proc.pid ? | |
( see http://www.unix.com/man-page/FreeBSD/3/sysctl/) KERN_PROC_PID) honistly this will be |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment