aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-04-05 21:30:19 -0400
committerRobert Haas <rhaas@postgresql.org>2012-04-05 21:37:33 -0400
commit662ca285a6f8fee5616eb2770f889ee94a040afa (patch)
treefd291a12630bf36c87a09d32a6215e7530056257 /src
parent05261ab6246cba9701b8529eba812b8a68c3be8d (diff)
downloadpostgresql-662ca285a6f8fee5616eb2770f889ee94a040afa.tar.gz
postgresql-662ca285a6f8fee5616eb2770f889ee94a040afa.zip
Put back code inadvertently deleted from exit_nicely.
Report by Andrew Dunstan.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/dumputils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/pg_dump/dumputils.c b/src/bin/pg_dump/dumputils.c
index c1a35b2ce80..b662ad107e5 100644
--- a/src/bin/pg_dump/dumputils.c
+++ b/src/bin/pg_dump/dumputils.c
@@ -1332,5 +1332,10 @@ exit_nicely(int code)
(*on_exit_nicely_list[i].function)(code,
on_exit_nicely_list[i].arg);
+#ifdef WIN32
+ if (parallel_init_done && GetCurrentThreadId() != mainThreadId)
+ ExitThread(code);
+#endif
+
exit(code);
}