Skip to content

Commit

Permalink
fix behavior of JULIA_EXCLUSIVE to agree with documentation (#39961)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Mar 9, 2021
1 parent 9dc9c2d commit 913f79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ void jl_start_threads(void)
// do we have exclusive use of the machine? default is no
exclusive = DEFAULT_MACHINE_EXCLUSIVE;
cp = getenv(MACHINE_EXCLUSIVE_NAME);
if (cp)
exclusive = strtol(cp, NULL, 10);
if (cp && strcmp(cp, "0") != 0)
exclusive = 1;

// exclusive use: affinitize threads, master thread on proc 0, rest
// according to a 'compact' policy
Expand Down

0 comments on commit 913f79d

Please sign in to comment.