projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Si prosegue con le modifiche per l'inclusione degli esempi di codice.
[gapil.git]
/
listati
/
unreliable_sig.c
diff --git a/listati/unreliable_sig.c
b/listati/unreliable_sig.c
new file mode 100644
(file)
index 0000000..
36490c7
--- /dev/null
+++ b/
listati/unreliable_sig.c
@@ -0,0
+1,13
@@
+int sig_handler(); /* handler function */
+int main()
+{
+ ...
+ signal(SIGINT, sig_handler); /* establish handler */
+ ...
+}
+
+int sig_handler()
+{
+ signal(SIGINT, sig_handler); /* restablish handler */
+ ... /* process signal */
+}