Mellanox / libxlio

Other
45 stars 21 forks source link

issue: 3976544 Don't close epfd for event_handler_manager_local #192

Closed pasis closed 4 months ago

pasis commented 4 months ago

Description

Base class event_handler_manager closes m_epfd unconditionally in the destructor. But in case of local copy, the constructor exits early and leaves m_epfd initialized as 0.

This leads to closing 0 file descriptor during the local copy destruction what causes runtime issues for objects related to the fd 0.

What

Don't close epfd in event_handler_manager_local destructor.

Why ?

Fix closing of a wrong file description what causes runtime issues.

Change type

What kind of change does this PR introduce?

Check list

pasis commented 4 months ago

bot:retest

AlexanderGrissik commented 4 months ago

bot:retest