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

sigint: Handle SIGINT cleanups cleanly #246

Merged
merged 1 commit into from
Jan 18, 2025
Merged

Conversation

mrdeep1
Copy link
Contributor

@mrdeep1 mrdeep1 commented Jan 16, 2025

No description provided.

@mrdeep1
Copy link
Contributor Author

mrdeep1 commented Jan 16, 2025

Addresses #245.

Copy link
Contributor

@obgm obgm left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -70,6 +70,8 @@ static const dtls_cipher_t* ciphers = NULL;
static unsigned int force_extended_master_secret = 0;
static unsigned int force_renegotiation_info = 0;

static int quit = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

C is too long ago for me ;-).
Doesn't this require a volatile?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. If the while (!quit) loop did not call other functions, volatile would certainly be needed. Here, the compiler is unlikely to optimize it out as it is a global, but I guess that it is possible.

I will update the PR accordingly.

@boaks
Copy link
Contributor

boaks commented Jan 18, 2025

LGTM

@boaks boaks merged commit 8a9e048 into eclipse-tinydtls:main Jan 18, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

3 participants