diff libpurple/util.h @ 15646:61b42cf81aa4

Restore default signal handlers in fork()'d children. This adds a gaim_restore_default_signal_handlers() utility function since children are made in multiple places.
author Evan Schoenberg <evan.s@dreskin.net>
date Sun, 18 Feb 2007 18:16:57 +0000
parents b0471b2a1de9
children 32c366eeeb99
line wrap: on
line diff
--- a/libpurple/util.h	Thu Feb 15 23:25:50 2007 +0000
+++ b/libpurple/util.h	Sun Feb 18 18:16:57 2007 +0000
@@ -1071,6 +1071,13 @@
  * This should not be used by plugins.
  */
 const char *_gaim_oscar_convert(const char *act, const char *protocol);
+
+/**
+ * Restore default signal handlers for signals which might reasonably have
+ * handlers. This should be called by a fork()'d child process, since child processes
+ * inherit the handlers of the parent.
+ */
+void gaim_restore_default_signal_handlers(void);
 #ifdef __cplusplus
 }
 #endif