mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
Use strerror(errno) instead of %m
Found by Fujii Masao
This commit is contained in:
parent
1e57c2c5b2
commit
92135ea0ed
@ -366,7 +366,8 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
|
||||
}
|
||||
else if (r < 0)
|
||||
{
|
||||
fprintf(stderr, _("%s: select() failed: %m\n"), progname);
|
||||
fprintf(stderr, _("%s: select() failed: %s\n"),
|
||||
progname, strerror(errno));
|
||||
return false;
|
||||
}
|
||||
/* Else there is actually data on the socket */
|
||||
|
Loading…
Reference in New Issue
Block a user