HomeFreeBSD

Simplify the test against maxproc in fork1().

Description

Simplify the test against maxproc in fork1().

Previously nprocs_new would be tested against maxprocs twice when
nprocs_new < maxprocs - 10. Eliminate the unnecessary comparison.

Submitted by: Wuyang Chung <wuyang.chung1@gmail.com>
GitHub PR: https://github.com/freebsd/freebsd/pull/397
MFC after: 1 week

Details

Provenance
markjAuthored on May 7 2019, 3:03 PM
Parents
rGbf03b1f1f95e: Disable interrupts first and then set spinlock_count to 1.
Branches
Unknown
Tags
Unknown

Event Timeline