~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/common/signal.h

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum, Clint Byrum, Micah Gersten
  • Date: 2011-02-12 22:50:26 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110212225026-yyyw4tk0msgql3ul
Tags: 0.24.2-0ubuntu1
[ Clint Byrum <clint@ubuntu.com> ]
* New upstream release. (LP: #658670, LP: #684011)
* debian/patches/fix-mkcephfs.patch: dropped (applied upstream)
* Removed .la files from libceph1-dev, libcrush1-dev and 
  librados1-dev (per Debian policy v3.9.1 10.2).
* debian/control: adding pkg-config as a build dependency
* debian/control: depend on libcrypto++-dev instead of libssl-dev
* debian/watch: added watch file

[ Micah Gersten <micahg@ubuntu.com> ]
* debian/control: add Homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 
2
// vim: ts=8 sw=2 smarttab
 
3
/*
 
4
 * Ceph - scalable distributed file system
 
5
 *
 
6
 * Copyright (C) 2011 New Dream Network
 
7
 *
 
8
 * This is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU Lesser General Public
 
10
 * License version 2.1, as published by the Free Software
 
11
 * Foundation.  See file COPYING.
 
12
 *
 
13
 */
 
14
 
 
15
#ifndef CEPH_COMMON_SIGNAL_H
 
16
#define CEPH_COMMON_SIGNAL_H
 
17
 
 
18
#include <signal.h>
 
19
#include <string>
 
20
 
 
21
// Install the standard Ceph signal handlers
 
22
void install_standard_sighandlers(void);
 
23
 
 
24
// Returns a string showing the set of blocked signals for the calling thread.
 
25
// Other threads may have a different set (this is per-thread thing).
 
26
std::string signal_mask_to_str();
 
27
 
 
28
// Block all signals. On success, stores the old set of blocked signals in
 
29
// old_sigset. On failure, stores an invalid set of blocked signals in
 
30
// old_sigset.
 
31
void block_all_signals(sigset_t *old_sigset);
 
32
 
 
33
// Restore the set of blocked signals. Will not restore an invalid set of
 
34
// blocked signals.
 
35
void restore_sigset(const sigset_t *old_sigset);
 
36
 
 
37
// Unblock all signals. On success, stores the old set of blocked signals in
 
38
// old_sigset. On failure, stores an invalid set of blocked signals in
 
39
// old_sigset.
 
40
void unblock_all_signals(sigset_t *old_sigset);
 
41
 
 
42
#endif