summaryrefslogtreecommitdiff
path: root/src/backend/storage/proc.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-08-01 05:11:33 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-08-01 05:11:33 +0000
commit164ef6ff2b4f4c8ee203003193178d2e2cb2ff68 (patch)
tree2e19c85d259b72ca1247cd92673727af6f32a88a /src/backend/storage/proc.h
parent4d837e370c1ca887ecf90f167fb9ca15383bb979 (diff)
Fixes:
Originally, I thought the problem was caused by a function that gets called as a normal function where we want to return a value, and as a signal handler where we need to have it accept a parameter (the signal number) and it returns nothing, I was going to case the function name in the signal call as (void (*)(int)). Looking at all the source, it turns out this function only gets used as a signal handler, so I set an int parameter and return void. I have removed the Linux defines because they are not needed. BSD let this sloppiness slide. Linux gave a compile error. Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Diffstat (limited to 'src/backend/storage/proc.h')
-rw-r--r--src/backend/storage/proc.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backend/storage/proc.h b/src/backend/storage/proc.h
index 1ec89dedc2d..a9476fe2a63 100644
--- a/src/backend/storage/proc.h
+++ b/src/backend/storage/proc.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: proc.h,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $
+ * $Id: proc.h,v 1.2 1996/08/01 05:10:16 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -116,11 +116,7 @@ extern PROC *ProcWakeup(PROC *proc, int errType);
extern int ProcGetId(void);
extern int ProcLockWakeup(PROC_QUEUE *queue, char * ltable, char * lock);
extern void ProcAddLock(SHM_QUEUE *elem);
-#if defined(PORTNAME_linux)
-extern int HandleDeadLock(int);
-#else
-extern int HandleDeadLock(void);
-#endif
+extern void HandleDeadLock(int sig);
extern void ProcReleaseSpins(PROC *proc);
extern void ProcFreeAllSemaphores(void);