mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
recommit of lost change - SIGSEGV on poll() with socfd == -1
This commit is contained in:
parent
c76ec8b854
commit
08f24cb0a4
@ -347,6 +347,10 @@ int SocketImpl::available()
|
|||||||
|
|
||||||
bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
|
bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
|
||||||
{
|
{
|
||||||
|
// Marian Krivos - 28.05.2009
|
||||||
|
// crash fix: SIGSEGV on linux when _sockfd == -1
|
||||||
|
poco_assert (_sockfd != POCO_INVALID_SOCKET);
|
||||||
|
|
||||||
#if defined(POCO_HAVE_FD_POLL)
|
#if defined(POCO_HAVE_FD_POLL)
|
||||||
pollfd pollBuf;
|
pollfd pollBuf;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user