Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skliper opened this issue Oct 22, 2020 · 0 comments

Comments

@skliper
Copy link
Contributor

skliper commented Oct 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant