2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

parser: Add the ability to turn off jobs to ease with debugging

The parser currently uses a fork model to do job processing. For
consistency even when the number of jobs is set to 1 a single
work process is forked. However this makes using gdb more difficult
and can be even worse for other debugging tools.

Make -j 0 disable all job spawning so all processing happens in the
main process.

PR: https://gitlab.com/apparmor/apparmor/merge_requests/105

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
John Johansen
2018-04-22 00:32:47 -07:00
committed by Steve Beattie
parent 06d9a8eff0
commit 48a32b78b1
2 changed files with 8 additions and 6 deletions

View File

@@ -304,6 +304,7 @@ Use --help=dump to see a full list of which dump flags are supported
Set the number of jobs used to compile the specified policy. Where n can
be
0 - disable jobs and use the main process for all compilation
# - a specific number of jobs
auto - the # of cpus in the in the system
x# - # * number of cpus