diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-11-06 17:01:29 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-11-06 17:01:29 +0000 |
commit | 17d819c0939cf1422a913388f6066f3a72f6159a (patch) | |
tree | acf666a8f1807bc7c67cebbe537297bc4ac0137f /src/backend | |
parent | 32edd98519e31e9378860f93a7c64e671b662621 (diff) | |
download | postgresql-17d819c0939cf1422a913388f6066f3a72f6159a.tar.gz postgresql-17d819c0939cf1422a913388f6066f3a72f6159a.zip |
Fix for recusive exit call from Massimo.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/storage/ipc/ipc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/backend/storage/ipc/ipc.c b/src/backend/storage/ipc/ipc.c index 2070f6fb5c6..2c10a8c5a5e 100644 --- a/src/backend/storage/ipc/ipc.c +++ b/src/backend/storage/ipc/ipc.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.40 1999/10/10 16:53:51 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.41 1999/11/06 17:01:28 momjian Exp $ * * NOTES * @@ -115,14 +115,13 @@ proc_exit(int code) TPRINTF(TRACE_VERBOSE, "proc_exit(%d) [#%d]", code, proc_exit_inprogress); /* - * If proc_exit is called too many times something bad is happenig, so - * exit immediately. + * If proc_exit is called too many times something bad is happening, so + * exit immediately. This is crafted in two if's for a reason. */ - if (proc_exit_inprogress > 9) - { + if (proc_exit_inprogress == 9) elog(ERROR, "infinite recursion in proc_exit"); + if (proc_exit_inprogress >= 9) goto exit; - } /* ---------------- * if proc_exit_inprocess is true, then it means that we |