std::signal
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <csignal>
|
||
void (*signal( int sig, void (*handler) (int))) (int); |
||
Legt den Error-Handler für Signal
sig. Das Signal-Handler einstellen können, so dass standardmäßig Handhabung auftreten wird, wird das Signal ignoriert, oder eine benutzerdefinierte Funktion aufgerufen wird .Original:
Sets the error handler for signal
sig. The signal handler can be set so that default handling will occur, signal is ignored, or an user-defined function is called.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Wenn das Signal-Handler auf eine Funktion eingestellt ist und ein Signal auftritt, ist es die Umsetzung definiert, ob
std::signal(sig, SIG_DFL) umgehend vor Beginn der Signal-Handler ausgeführt werden. Auch die Umsetzung etwas Implementierung definiert Satz von Signalen von auftritt, während das Signal-Handler läuft verhindern .Original:
When signal handler is set to a function and a signal occurs, it is implementation defined whether
std::signal(sig, SIG_DFL) will be executed immediately before the start of signal handler. Also, the implementation can prevent some implementation-defined set of signals from occurring while the signal handler runs.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Für einige der Signale kann die Umsetzung
std::signal(sig, SIG_IGN) beim Start des Programms aufrufen. Für den Rest muss die Umsetzung nennen std::signal(sig, SIG_DFL) .Original:
For some of the signals, the implementation may call
std::signal(sig, SIG_IGN) at the startup of the program. For the rest, the implementation must call std::signal(sig, SIG_DFL).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Wenn der Benutzer Funktion zurückkehrt definierten beim Umgang
SIGFPE, SIGILL, SIGSEGV oder jede andere Implementierung definiert Signal Angabe einer rechnerischen Ausnahme, ist das Verhalten undefiniert. In den meisten Implementierungen das Programm beendet . Original:
If the user defined function returns when handling
SIGFPE,