3 ms·
It should work on most systems that have a /proc filesystem: http://en.wikipedia.org/wiki/Procfs http://en.wikipedia.org/wiki/Procfs If you don't have /proc bu
by myhf 12y ago
It should work on most systems that have a /proc filesystem:
http://en.wikipedia.org/wiki/Procfs http://en.wikipedia.org/wiki/Procfs
If you don't have /proc but do have ps (1), you could get the parent pid like this:
PID := $(ps -p $$$$ -o ppid=)