<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <!--Converted with LaTeX2HTML 96.1-c (Feb 29, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --> <HTML> <HEAD> <TITLE>10.2.2 Linux signal options</TITLE> <META NAME="description" CONTENT="10.2.2 Linux signal options"> <META NAME="keywords" CONTENT="lpg"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <LINK REL=STYLESHEET HREF="lpg.css"> </HEAD> <BODY LANG="EN"> <A NAME="tex2html2090" HREF="node141.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="/icons//next_motif.gif"></A> <A NAME="tex2html2088" HREF="node138.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="/icons//up_motif.gif"></A> <A NAME="tex2html2082" HREF="node139.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="/icons//previous_motif.gif"></A> <A NAME="tex2html2092" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="/icons//contents_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html2091" HREF="node141.html">10.2.3 signal under Linux</A> <B>Up:</B> <A NAME="tex2html2089" HREF="node138.html">10.2 Signal handling</A> <B> Previous:</B> <A NAME="tex2html2083" HREF="node139.html">10.2.1 Signals under SVR4</A> <BR> <P> <H2><A NAME="SECTION001122000000000000000">10.2.2 Linux signal options</A></H2> <P> The following values for the <TT>sa_flags</TT> member of the <TT>sigaction</TT> structure are defined for Linux. <UL><LI> <TT>SA_NOCLDSTOP</TT>: Don't send <TT>SIGCHLD</TT> when a child process is stopped.<LI> <TT>SA_RESTART</TT>: Force restart of certain system calls when interrupted by a signal handler.<LI> <TT>SA_NOMASK</TT>: Disable signal mask (which blocks signals during execution of a signal handler).<LI> <TT>SA_ONESHOT</TT>: Clear signal handler after execution. Note that SVR4 uses <TT>SA_RESETHAND</TT> to mean the same thing.<LI> <TT>SA_INTERRUPT</TT>: Defined under Linux, but unused. Under SunOS, system calls were automatically restarted, and this flag disabled that behavior.<LI> <TT>SA_STACK</TT>: Currently a no-op, to be used for signal stacks. </UL> <P> Note that POSIX.1 defines only <TT>SA_NOCLDSTOP</TT>, and there are several other options defined by SVR4 not available under Linux. When porting applications which use <EM>sigaction</EM>, you may have to modify the values of <TT>sa_flags</TT> to get the appropriate behavior. <P> <BR> <HR> <P><ADDRESS> <I>Converted on: <BR> Fri Mar 29 14:43:04 EST 1996</I> </ADDRESS> </BODY> </HTML>