Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbfea071

Browse files
author
Raúl Marín
authored
Merge pull request#30 from Algunenano/REL_11_CARTO_exit
Abort with _exit on pg_dump / pg_restore signal handler
2 parents6a75087 +70ed8ba commitbfea071

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

‎CHANGELOG.carto.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
11.5.2+carto-2
1+
11.5.3+carto-1
2+
Release date: 2020-01-09
3+
4+
Changes:
5+
-[#30](https://github.com/CartoDB/postgres/pull/30): Apply a patch to abort pg_dump / pg_restore using_exit instead of exit to avoid Builder CI stuck processes.
6+
7+
11.5.2+carto-1
28
Release date: 2019-10-17
39

410
Changes:

‎src/bin/pg_dump/parallel.c‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,14 @@ sigTermHandler(SIGNAL_ARGS)
611611
write_stderr("terminated by user\n");
612612
}
613613

614-
/* And die. */
615-
exit(1);
614+
/*
615+
* We abort the program using _exit because using exit may interfere
616+
* with the function that was running when the interruption came.
617+
* For example, if the running function had acquired an allocation mutex
618+
* before it was interrupted and one of the atexit functions tried to
619+
* deallocate memory, it would block indefinitely.
620+
*/
621+
_exit(1);
616622
}
617623

618624
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp