---
name: "ACE_Sig_Guard"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Sig_Guard"
---

# ACE\_Sig\_Guard(3)

Hold signals in MASK for duration of a C++ statement block. Note that a "0" for mask causes all signals to be held.

## NAME

ACE\_Sig\_Guard -  Hold signals in MASK for duration of a C++ statement block. Note that a "0" for mask causes all signals to be held.

## SYNOPSIS

```
#include <ace/Signal.h>
class ACE_Sig_Guard
{
  public:
    ACE_Sig_Guard (ACE_Sig_Set *mask = 0);
    ~ACE_Sig_Guard (void);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    ACE_Sig_Set omask_;
};
```

## Initialization and termination methods.

```
ACE_Sig_Guard (ACE_Sig_Set *mask = 0);
```

Block out signals in mask.  Default is to block all signals!

```
~ACE_Sig_Guard (void);
```

Restore blocked signals.

```
void dump (void) const;
```

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
