3 ms·
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 w
by chaosfactor 12y ago
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.
- Someone 12y agoI 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-Summary https://www.gnu.org/software/make/manual/make.html#Options-S...)