diff src/util.h @ 164:94f2e5607772 noffle

[svn] * src/client.c,src/protocol.c,src/util.h,src/util.c: Common up repeated signal handler setting code into Utl_installSignalHandler. * src/client.c: Ensure Client_retrieveArt always exits with the global lock held. Previously it would be held on error, not held if OK.
author bears
date Thu, 25 Jan 2001 11:00:03 +0000
parents 93cc929329eb
children 4e69e9b722ae
line wrap: on
line diff
--- a/src/util.h	Sun Jan 07 11:15:58 2001 +0000
+++ b/src/util.h	Thu Jan 25 11:00:03 2001 +0000
@@ -3,7 +3,7 @@
 
   Miscellaneous helper functions.
 
-  $Id: util.h 110 2000-05-19 15:12:45Z bears $
+  $Id: util.h 248 2001-01-25 11:00:03Z bears $
 */
 
 #ifndef UTL_H
@@ -13,6 +13,8 @@
 #include <config.h>
 #endif
 
+#include <signal.h>
+
 #if TIME_WITH_SYS_TIME
 #include <sys/time.h>
 #include <time.h>
@@ -100,4 +102,8 @@
 void
 Utl_allocAndCpy( char **dst, const char *src );
 
+/* Install signal handler. */
+sig_t
+Utl_installSignalHandler( int sig, sig_t handler );
+
 #endif