---
name: "do_jobctl_trap"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/do_jobctl_trap"
---

# do\_jobctl\_trap(9)

take care of ptrace jobctl traps

## NAME

do\_jobctl\_trap - take care of ptrace jobctl traps

## SYNOPSIS

**void do\_jobctl\_trap(***void***);**

## ARGUMENTS

*void*

no arguments

## DESCRIPTION

When PT\_SEIZED, it's used for both group stop and explicit SEIZE/INTERRUPT traps. Both generate PTRACE\_EVENT\_STOP trap with accompanying siginfo. If stopped, lower eight bits of exit\_code contain the stop signal; otherwise, **SIGTRAP**.

When !PT\_SEIZED, it's used only for group stop trap with stop signal number as exit\_code and no siginfo.

## CONTEXT

Must be called with *current*-\>sighand-\>siglock held, which may be released and re-acquired before returning with intervening sleep.

## COPYRIGHT
