signal function c
/**
* @param sig - the signal number
* @param func - pointer to the handler function
*/
void (*signal(int sig, void (*func)(int)))(int);
signal function c
/**
* @param sig - the signal number
* @param func - pointer to the handler function
*/
void (*signal(int sig, void (*func)(int)))(int);
signal handlers in c
kill -l for all the signals
use signal function to register signal handlers
man signal
c signals
#define SIGHUP 1 /* Hangup the process */
#define SIGINT 2 /* Interrupt the process */
#define SIGQUIT 3 /* Quit the process */
#define SIGILL 4 /* Illegal instruction. */
#define SIGTRAP 5 /* Trace trap. */
#define SIGABRT 6 /* Abort. */
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us