'\" t .\" Title: do_jobctl_trap .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DO_JOBCTL_TRAP" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" do_jobctl_trap \- take care of ptrace jobctl traps .SH "SYNOPSIS" .HP \w'void\ do_jobctl_trap('u .BI "void do_jobctl_trap(" "void" ");" .SH "ARGUMENTS" .PP \fIvoid\fR .RS 4 no arguments .RE .SH "DESCRIPTION" .PP .PP When PT_SEIZED, it\*(Aqs 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, \fBSIGTRAP\fR\&. .PP When !PT_SEIZED, it\*(Aqs used only for group stop trap with stop signal number as exit_code and no siginfo\&. .SH "CONTEXT" .PP Must be called with \fIcurrent\fR\->sighand\->siglock held, which may be released and re\-acquired before returning with intervening sleep\&. .SH "COPYRIGHT" .br