-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to the asynchronous nature of `ldms_stream`, a stream event may already in the process of being delivered to the application callback function at the same time that the application closes the stream client and releases application's resources associated with it. This results in a use-after-free. This patch adds `LDMS_STREAM_EVENT_CLOSE` callback event that is delivered to the application callback function when the stream client is closed. The `LDMS_STREAM_EVENT_CLOSE` is the last event to be delivered to the client call back function, so that the application can then safely release resources asscoiated with the stream client after receiving it.
- Loading branch information
1 parent
437ecf5
commit 5d0be59
Showing
3 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters