Skip to content

Close LG instance when corresponding app crashes#59

Open
amritaintel wants to merge 1 commit intoprojectceladon:celadon/r/mr0/stablefrom
amritaintel:sing_vsock
Open

Close LG instance when corresponding app crashes#59
amritaintel wants to merge 1 commit intoprojectceladon:celadon/r/mr0/stablefrom
amritaintel:sing_vsock

Conversation

@amritaintel
Copy link
Copy Markdown

Tracked-On: OAM-100054
Signed-off-by: ahs amrita.h.s@intel.com

continue;
}
// start msg xchange
pthread_t thread;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thread is declared in stack, does the new connection will overwrite the existing threads?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

// 0 is reserved for the main channel
if (channel->id_ > 0) {
//Mark the end of this thread
dispatcher->t_clients_.erase(channel->id_);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the thread join need to be handled here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

msg = chnl->msg_queue.front();
chnl->msg_queue.pop();
channel = chnl;
bMsg = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the break need to be added here to avoid possible msg lost if multiple messages arriving?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Copy Markdown
Contributor

@shuangwan01 shuangwan01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Tracked-On: OAM-100054
Signed-off-by: ahs <amrita.h.s@intel.com>
@sysopenci sysopenci added the Stale Stale label for inactive open prs label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Stale label for inactive open prs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants