diff options
author | Nico Weber <nicolasweber@gmx.de> | 2016-03-21 01:41:15 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2016-03-21 01:42:17 (GMT) |
commit | 89587196705f54afb904c8f4572e65de7274dd81 (patch) | |
tree | c5029715235334ab282237f941f86da3eaf68707 /src/subprocess_test.cc | |
parent | b231274de33a6ebaa5ed284eb233fa360d84ad8f (diff) | |
download | Ninja-89587196705f54afb904c8f4572e65de7274dd81.zip Ninja-89587196705f54afb904c8f4572e65de7274dd81.tar.gz Ninja-89587196705f54afb904c8f4572e65de7274dd81.tar.bz2 |
Use posix_spawn() instead of fork()/exec().
posix_spawn() is a syscall on OS X and Solaris and a bit faster. It's
also easier emulate for cygwin, and the code is a bit simpler.
Diffstat (limited to 'src/subprocess_test.cc')
-rw-r--r-- | src/subprocess_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/subprocess_test.cc b/src/subprocess_test.cc index c8f2fb8..ee16190 100644 --- a/src/subprocess_test.cc +++ b/src/subprocess_test.cc @@ -226,7 +226,8 @@ TEST_F(SubprocessTest, SetWithLots) { rlimit rlim; ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlim)); if (rlim.rlim_cur < kNumProcs) { - printf("Raise [ulimit -n] well above %u (currently %lu) to make this test go\n", kNumProcs, rlim.rlim_cur); + printf("Raise [ulimit -n] above %u (currently %lu) to make this test go\n", + kNumProcs, rlim.rlim_cur); return; } |