forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaaddf6b
committed
Remove libpq's use of abort(3) to handle mutex failure cases.
Doing an abort() seems all right in development builds, but not inproduction builds of general-purpose libraries. However, the functionsthat were doing this lack any way to report a failure back up to theircallers. It seems like we can just get away with ignoring failures inproduction builds, since (a) no such failures have been reported in thedozen years that the code's been like this, and (b) failure to enforcemutual exclusion during fe-auth.c operations would likely not cause anyproblems anyway in most cases. (The OpenSSL callbacks that use thismacro are obsolete, so even less likely to cause interesting problems.)Possibly a better answer would be to break compatibility of thepgthreadlock_t callback API, but in the absence of field problemreports, it doesn't really seem worth the trouble.Discussion:https://postgr.es/m/3131385.1624746109@sss.pgh.pa.us1 parent48cb244 commitaaddf6b
File tree
3 files changed
+15
-12
lines changed- src/interfaces/libpq
3 files changed
+15
-12
lines changedLines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7254 | 7254 |
| |
7255 | 7255 |
| |
7256 | 7256 |
| |
| 7257 | + | |
| 7258 | + | |
| 7259 | + | |
| 7260 | + | |
| 7261 | + | |
7257 | 7262 |
| |
7258 | 7263 |
| |
7259 | 7264 |
| |
| |||
7273 | 7278 |
| |
7274 | 7279 |
| |
7275 | 7280 |
| |
7276 |
| - | |
| 7281 | + | |
7277 | 7282 |
| |
7278 | 7283 |
| |
7279 | 7284 |
| |
7280 | 7285 |
| |
7281 | 7286 |
| |
7282 | 7287 |
| |
7283 | 7288 |
| |
7284 |
| - | |
| 7289 | + | |
7285 | 7290 |
| |
7286 | 7291 |
| |
7287 | 7292 |
| |
7288 | 7293 |
| |
7289 |
| - | |
| 7294 | + | |
7290 | 7295 |
| |
7291 | 7296 |
| |
7292 | 7297 |
| |
|
Lines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
611 | 611 |
| |
612 | 612 |
| |
613 | 613 |
| |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
614 | 619 |
| |
615 | 620 |
| |
616 | 621 |
| |
617 |
| - | |
| 622 | + | |
618 | 623 |
| |
619 | 624 |
| |
620 | 625 |
| |
621 | 626 |
| |
622 |
| - | |
| 627 | + | |
623 | 628 |
| |
624 | 629 |
| |
625 | 630 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
626 | 626 |
| |
627 | 627 |
| |
628 | 628 |
| |
629 |
| - | |
630 |
| - | |
631 |
| - | |
632 |
| - | |
633 |
| - | |
634 |
| - | |
635 |
| - | |
636 | 629 |
| |
637 | 630 |
| |
638 | 631 |
| |
|
0 commit comments
Comments
(0)