Skip to content

Commit bd09111

Browse files
committed
pg_regress: Replace exit_nicely() with exit() plus atexit() hook
1 parent ac7a5a3 commit bd09111

File tree

4 files changed

+50
-60
lines changed

4 files changed

+50
-60
lines changed

src/interfaces/ecpg/test/pg_regress_ecpg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ ecpg_filter(const char *sourcefile, const char *outfile)
3434
if (!s)
3535
{
3636
fprintf(stderr, "Could not open file %s for reading\n", sourcefile);
37-
exit_nicely(2);
37+
exit(2);
3838
}
3939
t = fopen(outfile, "w");
4040
if (!t)
4141
{
4242
fprintf(stderr, "Could not open file %s for writing\n", outfile);
43-
exit_nicely(2);
43+
exit(2);
4444
}
4545

4646
while (fgets(linebuf, LINEBUFSIZE, s))
@@ -148,7 +148,7 @@ ecpg_start_test(const char *testname,
148148
{
149149
fprintf(stderr, _("could not start process for test %s\n"),
150150
testname);
151-
exit_nicely(2);
151+
exit(2);
152152
}
153153

154154
free(outfile_stdout);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy