Renaming all folders

This commit is contained in:
Fabio Scotto di Santolo
2025-08-22 16:21:42 +02:00
parent 331308b2d8
commit 538cb4559e
45 changed files with 9 additions and 9 deletions

20
10_Signals/simple_catch.c Normal file
View File

@@ -0,0 +1,20 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void catch_sighup(int);
int main(void)
{
signal(SIGHUP, catch_sighup);
printf("Hi, I'm a process with PID %d\n", getpid());
sleep(1000);
return EXIT_SUCCESS;
}
void catch_sighup(int sig)
{
printf("Catch signal SIGHUP\n");
exit(EXIT_SUCCESS);
}