Commit 1fbb7fd
Stop server on SIGTERM, SIGINT by default (#406)
* Stop server on SIGTERM by default
Fix #174
* Fix variable name
* Handle SIGTERM only inside Dream server
Don't install the signal handler at the module scope, to avoid polluting
the user's application with potentially unused handlers.
* Handle SIGTERM and SIGINT
* Update docs
---------
Co-authored-by: Sebastian Willenbrink <sebastian.willenbrink@tngtech.com>1 parent 638ac87 commit 1fbb7fd
3 files changed
Lines changed: 19 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | 482 | | |
489 | 483 | | |
490 | 484 | | |
| |||
520 | 514 | | |
521 | 515 | | |
522 | 516 | | |
523 | | - | |
| 517 | + | |
524 | 518 | | |
525 | 519 | | |
526 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2130 | 2130 | | |
2131 | 2131 | | |
2132 | 2132 | | |
2133 | | - | |
| 2133 | + | |
2134 | 2134 | | |
2135 | 2135 | | |
2136 | 2136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
677 | 689 | | |
678 | 690 | | |
679 | 691 | | |
| |||
684 | 696 | | |
685 | 697 | | |
686 | 698 | | |
687 | | - | |
| 699 | + | |
688 | 700 | | |
689 | 701 | | |
690 | 702 | | |
| |||
696 | 708 | | |
697 | 709 | | |
698 | 710 | | |
699 | | - | |
| 711 | + | |
700 | 712 | | |
701 | 713 | | |
702 | 714 | | |
| |||
712 | 724 | | |
713 | 725 | | |
714 | 726 | | |
715 | | - | |
| 727 | + | |
716 | 728 | | |
717 | 729 | | |
718 | 730 | | |
| |||
759 | 771 | | |
760 | 772 | | |
761 | 773 | | |
762 | | - | |
| 774 | + | |
763 | 775 | | |
764 | 776 | | |
765 | 777 | | |
| |||
0 commit comments