X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=signal.tex;h=15a9412ff7249cdc7118ae2459f1c5b433c0e5c1;hp=172ba3ea7957ca2a1bf7f7e92cb61a87289c875b;hb=2270251f0f94d61ec0eaf6e32291854d1834f282;hpb=daacafbdd3ae5d8fa4b68ecdcc2a5c97fd5128b7 diff --git a/signal.tex b/signal.tex index 172ba3e..15a9412 100644 --- a/signal.tex +++ b/signal.tex @@ -59,8 +59,7 @@ in cui si vuole che il signal handler esterno resti attivo. In questo caso è possibile una situazione in cui i segnali possono essere perduti; si consideri il seguente segmento di codice in cui la prima operazione del manipolatore è quella di reinstallare se stesso: -\begin{lstlisting}{showlines=false} - +\begin{lstlisting}[labelstep=0,frame=,indent=1cm]{} int sig_handler(); /* handler function */ ... signal(SIGINT, sig_handler); /* establish handler */ @@ -92,7 +91,7 @@ quello in cui si usa il manipolatore per settare un flag che riporta al processo l'occorrenza del segnale. Si consideri il seguente segmento di codice il cui scopo sarebbe quello di fermare il processo fino all'occorrenza di un opportuno segnale: -\begin{lstlisting}{} +\begin{lstlisting}[labelstep=0,frame=,indent=1cm]{} int signal_flag = 0; main () { @@ -306,8 +305,8 @@ In \ntab\ si SIGTSTP &$\bullet$&&$\bullet$& D & Stop typed at tty \\ SIGTTIN &$\bullet$&&$\bullet$& D & tty input for background process \\ SIGTTOU &$\bullet$&&$\bullet$& D & tty output for background process \\ - SIGBUS &&$\bullet$&$\bullet$& C & Bus error (bad memory access) \\ - SIGPOLL &&$\bullet$&$\bullet$& A & Pollable event (Sys V). Synonym of SIGIO\\ + SIGBUS &&$\bullet$&$\bullet$& C & Bus error (bad memory access) \\ + SIGPOLL &&$\bullet$&$\bullet$& A & Pollable event (Sys V). Synonym of SIGIO\\ SIGPROF &&$\bullet$&$\bullet$& A & Profiling timer expired \\ SIGSYS &&$\bullet$&$\bullet$& C & Bad argument to routine (SVID)\\ SIGTRAP &&$\bullet$&$\bullet$& C & Trace/breakpoint trap \\