Skip to content

Instantly share code, notes, and snippets.

@dacresni
Created May 16, 2011 00:19
Show Gist options
  • Save dacresni/973708 to your computer and use it in GitHub Desktop.
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
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