Skip to content

Commit

Permalink
get_pid_max: return -1 on unsupported platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
HiGarfield committed Sep 16, 2024
1 parent f814c7c commit ddef98a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,7 @@ pid_t get_pid_max(void)
return (pid_t)99999;
#elif defined(__APPLE__)
return (pid_t)99998;
#else
return (pid_t)-1;
#endif
}

0 comments on commit ddef98a

Please sign in to comment.