]> granicus.if.org Git - postgresql/commit
When launching a child backend, take care to close file descriptors for
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Feb 2001 00:35:10 +0000 (00:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Feb 2001 00:35:10 +0000 (00:35 +0000)
commit897a895d323799ca66db1b20a04e6d34ddc07045
tree4dfd960bedffef5080aa749921267cf93f742524
parent608ddb7503a044d32ad6c0a6dd745c025f863d49
When launching a child backend, take care to close file descriptors for
any other client connections that may exist (which would only happen if
another client is currently in the authentication cycle).  This avoids
wastage of open descriptors in a child.  It might also explain peculiar
behaviors like not closing connections when expected, since the kernel
will probably not signal EOF as long as some other backend is randomly
holding open a reference to the connection, even if the client went away
long since ...
src/backend/postmaster/postmaster.c