- Notifications
You must be signed in to change notification settings - Fork5
Commit6c461cb
committed
Prevent interrupts while reporting non-ERROR elog messages.
This should eliminate the risk of recursive entry to syslog(3), whichappears to be the cause of the hang reported in bug #9551 from JamesMorton.Arguably, the real problem here is auth.c's willingness to turn onImmediateInterruptOK while executing fairly wide swaths of backend code.We may well need to work at narrowing the code ranges in which theauthentication_timeout interrupt is enabled. For the moment, though,this is a cheap and reasonably noninvasive fix for a field-reportedfailure; the other approach would be complex and not necessarilybug-free itself.Back-patch to all supported branches.1 parentf70a78b commit6c461cb
1 file changed
+25
-13
lines changedLines changed: 25 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
410 | 410 |
| |
411 | 411 |
| |
412 | 412 |
| |
| 413 | + | |
413 | 414 |
| |
414 | 415 |
| |
415 | 416 |
| |
416 | 417 |
| |
417 | 418 |
| |
418 | 419 |
| |
419 | 420 |
| |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
420 | 433 |
| |
421 | 434 |
| |
422 | 435 |
| |
| |||
442 | 455 |
| |
443 | 456 |
| |
444 | 457 |
| |
445 |
| - | |
446 |
| - | |
447 |
| - | |
448 |
| - | |
449 |
| - | |
450 |
| - | |
| 458 | + | |
451 | 459 |
| |
452 | 460 |
| |
453 | 461 |
| |
454 | 462 |
| |
455 | 463 |
| |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
456 | 468 |
| |
457 | 469 |
| |
458 | 470 |
| |
| |||
519 | 531 |
| |
520 | 532 |
| |
521 | 533 |
| |
522 |
| - | |
523 |
| - | |
524 |
| - | |
525 |
| - | |
| 534 | + | |
526 | 535 |
| |
527 | 536 |
| |
528 | 537 |
| |
| |||
555 | 564 |
| |
556 | 565 |
| |
557 | 566 |
| |
558 |
| - | |
559 | 567 |
| |
560 | 568 |
| |
561 | 569 |
| |
562 | 570 |
| |
563 | 571 |
| |
564 | 572 |
| |
565 |
| - | |
566 |
| - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
567 | 579 |
| |
568 | 580 |
| |
569 | 581 |
| |
|
0 commit comments
Comments
(0)