diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-07-31 02:19:23 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-07-31 02:19:23 +0000 |
commit | a05ed5bc11ceef1ab98bd6cfdb7532266256c98c (patch) | |
tree | a91e407af845421429db765fe47762157201d0ce /src/backend/storage/lmgr/proc.c | |
parent | 4477b6f6c262a828e21e6cc5f47b61a3e8032051 (diff) | |
download | postgresql-a05ed5bc11ceef1ab98bd6cfdb7532266256c98c.tar.gz postgresql-a05ed5bc11ceef1ab98bd6cfdb7532266256c98c.zip |
Fixes:
In postgres95/src/backend/nodes/readfuncs, lines 1188 and 1189,
local_node->relname is taken to point to a NameType, while its
defined as a pointer to char. Both the casting to Name and the
call of namestrcpy should, IMHO, be changed appropriately (first
patch).
As far as I could see from the Linux signal header file,
a signal handler is declared as
typedef void (*__sighandler_t)(int);
Few changes to postgres95/src/backend/storage/lmgr/proc.c seem
appropriate to comply with this.
Finally, postgres95/src/bin/pg_version/pg_version.c defines
a function GetDataHome (by default, returning an integer)
and returns NULL in the function, which isn't an integer...
Submitted by: ernst.molitor@uni-bonn.de
Diffstat (limited to 'src/backend/storage/lmgr/proc.c')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 74651996d9c..6f8ce2cc994 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3 1996/07/25 19:45:31 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.4 1996/07/31 02:19:09 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -46,7 +46,7 @@ * This is so that we can support more backends. (system-wide semaphore * sets run out pretty fast.) -ay 4/95 * - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3 1996/07/25 19:45:31 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.4 1996/07/31 02:19:09 scrappy Exp $ */ #include <sys/time.h> #ifndef WIN32 @@ -96,7 +96,7 @@ static void ProcKill(int exitStatus, int pid); static void ProcGetNewSemKeyAndNum(IPCKey *key, int *semNum); static void ProcFreeSem(IpcSemaphoreKey semKey, int semNum); #if defined(PORTNAME_linux) -extern int HandleDeadLock(int); +extern void HandleDeadLock(int); #else extern int HandleDeadLock(void); #endif @@ -628,10 +628,11 @@ ProcAddLock(SHM_QUEUE *elem) * up my semaphore. * -------------------- */ -int #if defined(PORTNAME_linux) +void HandleDeadLock(int i) #else +int HandleDeadLock() #endif { |