Skip to content

File/socket can be closed while actively inside a OS_SelectMultiple() call in another thread #630

@skliper

Description

@skliper

Is your feature request related to a problem? Please describe.
Converting FIXME into an issue:

int32 OS_SelectMultiple(OS_FdSet *ReadSet, OS_FdSet *WriteSet, int32 msecs)
{
int32 return_code;
/*
* FIXME:
* This does not currently increment any refcounts.
* That means a file/socket can be closed while actively inside a
* OS_SelectMultiple() call in another thread.
*/
return_code = OS_SelectMultiple_Impl(ReadSet, WriteSet, msecs);
return return_code;
} /* end OS_SelectMultiple */

Describe the solution you'd like
Address/disposition as an issue.

Describe alternatives you've considered
None

Additional context
#327

Requester Info
Jacob Hageman - NASA/GSFC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions