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

Unified Diff: runtime/bin/signal_blocker.h

Issue 105083009: Revert "Signal handling." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | « runtime/bin/process_win.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/signal_blocker.h
diff --git a/runtime/bin/signal_blocker.h b/runtime/bin/signal_blocker.h
index 1ab816c145deda0af496c680557b4b146199b433..58e8d7eb00bdf5dfb568efcd6f5d9f9a5fbb7b61 100644
--- a/runtime/bin/signal_blocker.h
+++ b/runtime/bin/signal_blocker.h
@@ -26,26 +26,12 @@ class ThreadSignalBlocker {
sigaddset(&signal_mask, sig);
// Add sig to signal mask.
int r = pthread_sigmask(SIG_BLOCK, &signal_mask, &old);
- USE(r);
- ASSERT(r == 0);
- }
-
- ThreadSignalBlocker(int sigs_count, const int sigs[]) {
- sigset_t signal_mask;
- sigemptyset(&signal_mask);
- for (int i = 0; i < sigs_count; i++) {
- sigaddset(&signal_mask, sigs[i]);
- }
- // Add sig to signal mask.
- int r = pthread_sigmask(SIG_BLOCK, &signal_mask, &old);
- USE(r);
ASSERT(r == 0);
}
~ThreadSignalBlocker() {
// Restore signal mask.
int r = pthread_sigmask(SIG_SETMASK, &old, NULL);
- USE(r);
ASSERT(r == 0);
}
« no previous file with comments | « runtime/bin/process_win.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698