Re:GNU make insanity: finding the value of the -j parameter
by protomyth on Sunday March 29, 2015 @01:37PM
(#9285684)
Is Quanticles's code portable to the other unix systems?
[ Parent
| on HN ]
Re:GNU make insanity: finding the value of the -j parameter
by myhf on Sunday March 29, 2015 @09:19PM
(#9287204)
It should work on most systems that have a /proc filesystem:
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=)