]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sigchain.h
chain kill signals for cleanup functions
[thirdparty/git.git] / sigchain.h
diff --git a/sigchain.h b/sigchain.h
new file mode 100644 (file)
index 0000000..254ebb0
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef SIGCHAIN_H
+#define SIGCHAIN_H
+
+typedef void (*sigchain_fun)(int);
+
+int sigchain_push(int sig, sigchain_fun f);
+int sigchain_pop(int sig);
+
+#endif /* SIGCHAIN_H */