Index: util/test/multiprocess_posix.cc |
diff --git a/util/test/multiprocess_posix.cc b/util/test/multiprocess_posix.cc |
index f50446b17c6728a7dd6235fe5c88fbbc34eb7019..fbb39dfd1c655e8175ee28c0dc257de4e8ec924f 100644 |
--- a/util/test/multiprocess_posix.cc |
+++ b/util/test/multiprocess_posix.cc |
@@ -212,7 +212,8 @@ void Multiprocess::RunChild() { |
return; |
} |
- exit(0); |
+ // In a forked child, exit() is unsafe. Use _exit() instead. |
+ _exit(EXIT_SUCCESS); |
} |
} // namespace test |