Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: util/test/posix/close_multiple.h

Issue 531203002: Add the MultiprocessExec test and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Fix indentation Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « util/test/multiprocess_exec_test_child.cc ('k') | util/test/posix/close_multiple.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/test/posix/close_multiple.h
diff --git a/util/test/posix/close_multiple.h b/util/test/posix/close_multiple.h
index f0199c16ef1191d754fd29d3fd541d96f7133f82..c2206bd057f33f0251e727d10feb4621f3097df9 100644
--- a/util/test/posix/close_multiple.h
+++ b/util/test/posix/close_multiple.h
@@ -34,7 +34,10 @@ namespace crashpad {
//! protected against `close()`.
//!
//! \param[in] fd The lowest file descriptor to close or set as close-on-exec.
-void CloseMultipleNowOrOnExec(int fd);
+//! \param[in] preserve_fd A file descriptor to preserve and not close (or set
+//! as close-on-exec), even if it is open and its value is greater than \a
+//! fd. To not preserve any file descriptor, pass `-1` for this parameter.
+void CloseMultipleNowOrOnExec(int fd, int preserve_fd);
} // namespace crashpad
« no previous file with comments | « util/test/multiprocess_exec_test_child.cc ('k') | util/test/posix/close_multiple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698