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

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: " 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
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);
Robert Sesek 2014/09/03 20:56:24 I can imagine wanting this to be a std::set in the
Mark Mentovai 2014/09/03 22:24:04 rsesek wrote:
} // namespace crashpad

Powered by Google App Engine
This is Rietveld 408576698