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

Unified Diff: base/process_util.h

Issue 11280010: Extract SIGPIPE ignoring code to a common place. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: documented return value Created 8 years, 1 month 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 | « base/debug/stack_trace_posix.cc ('k') | base/process_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util.h
diff --git a/base/process_util.h b/base/process_util.h
index 2805e421607e43ff028485351cb1a46801673606..00135c4ef6fd85e542dad026c3bdeca87106e394 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -147,6 +147,12 @@ BASE_EXPORT extern size_t g_oom_size;
BASE_EXPORT void RouteStdioToConsole();
#endif
+#if defined(OS_POSIX)
+// Ignores SIGPIPE signal. We handle pipe errors in a different way.
+// Returns true on success.
+BASE_EXPORT bool IgnoreSigPipe() WARN_UNUSED_RESULT;
+#endif
+
// Returns the id of the current process.
BASE_EXPORT ProcessId GetCurrentProcId();
« no previous file with comments | « base/debug/stack_trace_posix.cc ('k') | base/process_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698