projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Materiale rimasto indietro e segnali real time
[gapil.git]
/
listati
/
rtsigvalsend_handl.c
diff --git a/listati/rtsigvalsend_handl.c
b/listati/rtsigvalsend_handl.c
new file mode 100644
(file)
index 0000000..
a58e0be
--- /dev/null
+++ b/
listati/rtsigvalsend_handl.c
@@ -0,0
+1,6
@@
+void sig_handler(int signum, siginfo_t *info, void *ucontext) {
+ printf("Signal %d\n", signum);
+ printf("From pid %d\n", info->si_pid);
+ printf("From user %d\n", info->si_uid);
+ printf("Value %d\n", info->si_value.sival_int);
+}