Skip to content

cgi: tidy up fastcgi_cleanup signal handler #13026

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

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Conversation

crrodriguez
Copy link
Contributor

  • signal handlers can only touch global volatile sig_atomic_t variables.
  • fastcgi_cleanup is static
  • structs sigaction are static
  • A signal handler cannot call exit() because it is not async signal safe. call _exit instead.

* signal handlers can only touch global volatile sig_atomic_t variables.
* fastcgi_cleanup is static
* structs sigaction are static
* A signal handler cannot call exit() because it is not async signal safe,
  call _exit instead.
@Girgias Girgias requested a review from bukka December 27, 2023 00:08
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

LGTM in general.

Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

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

LGTM

@nielsdos
Copy link
Member

nielsdos commented Feb 2, 2024

I don't know why this was not merged, it seems to have been forgotten.
It looks good to me as well, so I'll merge it.

@nielsdos nielsdos merged commit eb23857 into php:master Feb 2, 2024
@crrodriguez crrodriguez deleted the cgi_fix branch February 5, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants