forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc91a216
committed
Use STDOUT/STDERR_FILENO in most of syslogger.
This fixes problems on windows when logging collector is used in a service,failing with:FATAL: could not redirect stderr: Bad file descriptorThis is triggered by76e38b3. The problem is that STDOUT/STDERR_FILENOaren't defined on windows, which lead us to use _fileno(stdout) etc, but thatdoesn't work if stdout/stderr are closed.Author: Andres Freund <andres@anarazel.de>Reported-By: Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>Message-Id: 20220520164558.ozb7lm6unakqzezi@alap3.anarazel.de (on pgsql-packagers)Backpatch: 15-, where76e38b3 came in1 parent92f4786 commitc91a216
1 file changed
+9
-9
lines changedLines changed: 9 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
208 |
| - | |
209 |
| - | |
| 208 | + | |
| 209 | + | |
210 | 210 |
| |
211 | 211 |
| |
212 |
| - | |
213 |
| - | |
| 212 | + | |
| 213 | + | |
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 |
| - | |
| 225 | + | |
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| |||
716 | 716 |
| |
717 | 717 |
| |
718 | 718 |
| |
719 |
| - | |
| 719 | + | |
720 | 720 |
| |
721 | 721 |
| |
722 | 722 |
| |
723 | 723 |
| |
724 |
| - | |
| 724 | + | |
725 | 725 |
| |
726 | 726 |
| |
727 | 727 |
| |
| |||
738 | 738 |
| |
739 | 739 |
| |
740 | 740 |
| |
741 |
| - | |
| 741 | + | |
742 | 742 |
| |
743 | 743 |
| |
744 | 744 |
| |
745 | 745 |
| |
746 |
| - | |
| 746 | + | |
747 | 747 |
| |
748 | 748 |
| |
749 | 749 |
| |
|
0 commit comments
Comments
(0)