mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +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)
|
||||
{
|
||||
// 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)
|
||||
pollfd pollBuf;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user