News for hackers. Stuff that matters.
Re:GNU make insanity: finding the value of the -j parameter by chaosfactor on Saturday March 28, 2015 @03:23PM (#9282447)
This probably won't work if you just pass -j. If I needed to solve this problem, I would have just grepped the output of `ps' to get the make invocation. If I wasn't sure which invocation was correct, I would have used heuristics like the output of `pstree' to figure it out.
Re:GNU make insanity: finding the value of the -j parameter by Someone on Saturday March 28, 2015 @03:43PM (#9282519)
I would think a process launched by make can easily obtain the process ID of its parent process. If so, no heuristics are needed to find the correct instance of make.

On the other hand, reading the command line isn't sufficient. The -j argument does not require a job count, defaulting to "as many as possible".

Also, you would have to check your OS, too since the -j argument is ignored on MS-DOS (https://www.gnu.org/software/make/manual/make.html#Options-S...)