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

Fix fstrm_writer_open() to allow multiple opens #1

Closed
edmonds opened this issue Jun 10, 2014 · 0 comments
Closed

Fix fstrm_writer_open() to allow multiple opens #1

edmonds opened this issue Jun 10, 2014 · 0 comments
Assignees

Comments

@edmonds
Copy link
Contributor

edmonds commented Jun 10, 2014

In the iothr implementation, fstrm_writer_open() is called on the writer object during thread startup. However, the caller may have already called fstrm_writer_open() on the writer object before passing it to fstrm_iothr_init(), in which case the second fstrm_writer_open() will fail, and iothr will never write any data.

Modify fstrm_writer_open() to return fstrm_res_success if the writer has already been successfully opened.

@edmonds edmonds self-assigned this Jun 10, 2014
edmonds pushed a commit that referenced this issue Aug 15, 2014
this provides the failing test case for #1.
@edmonds edmonds closed this as completed in 6cc9876 Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant