Skip to content

fix litespeed SAPI build warnings. #10068

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

Closed
wants to merge 1 commit into from

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Dec 8, 2022

helpers only called on linux anyways, proper C calls prototypes.

@devnexen devnexen force-pushed the fix_litespeedsapi_warnings branch from 22885e2 to 787d202 Compare December 8, 2022 11:26
@cmb69 cmb69 requested a review from gwanglst December 8, 2022 11:39
@devnexen devnexen force-pushed the fix_litespeedsapi_warnings branch from 787d202 to c6bf3b5 Compare December 8, 2022 12:11
Comment on lines 767 to 788
if (sigaction( SIGINT, &act, NULL) < 0) {
return -1;
}

if (sigaction( SIGQUIT, &act, NULL) < 0) {
return -1;
}
if (sigaction( SIGILL, &act, NULL) < 0) {
return -1;
}
if (sigaction( SIGABRT, &act, NULL) < 0) {
return -1;
}
if (sigaction( SIGBUS, &act, NULL) < 0) {
return -1;
}
if (sigaction( SIGSEGV, &act, NULL) < 0) {
return -1;
}
if (sigaction( SIGTERM, &act, NULL) < 0) {
return -1;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same, should ignore those errors.

Comment on lines 691 to 715
if (sigaction(SIGINT, &act, NULL) < 0) {
return;
}
if (sigaction(SIGQUIT, &act, NULL) < 0) {
return;
}
if (sigaction(SIGILL, &act, NULL) < 0) {
return;
}
if (sigaction(SIGABRT, &act, NULL) < 0) {
return;
}
if (sigaction(SIGBUS, &act, NULL) < 0) {
return;
}
if (sigaction(SIGSEGV, &act, NULL) < 0) {
return;
}
if (sigaction(SIGTERM, &act, NULL) < 0) {
return;
}

if (sigaction(SIGPROF, &act, NULL) < 0) {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should ignore those errors. maybe can do

(void)sigaction(SIGINT, &act, NULL);

@@ -1368,7 +1362,7 @@ static inline int lsapi_notify_pid( int fd )


static char s_conn_key_packet[16];
static inline int init_conn_key( int fd )
static inline __attribute__((unused)) int init_conn_key( int fd )
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead, this function is no longer in use, can be removed.

helpers only called on linux anyways, proper C calls prototypes.
@devnexen devnexen force-pushed the fix_litespeedsapi_warnings branch from c6bf3b5 to 8b43232 Compare December 8, 2022 15:58
@gwanglst
Copy link
Contributor

gwanglst commented Dec 9, 2022

No problem with the change now, just not sure which branch it should be merged to? If want to get the change included in the next release, should patch again PHP-8.0 branch.

@devnexen
Copy link
Member Author

devnexen commented Dec 9, 2022

oh those changes are not bug fixes, so I targeted only master but if @cmb69 advise lower branches l can adapt.

@cmb69
Copy link
Member

cmb69 commented Dec 10, 2022

PHP 8.0 is no longer actively supported, so if this is a regular bug fix, it should target PHP-8.1. Otherwise, "master" would be the safer option. Or maybe target PHP-8.2 as a compromise.

@devnexen devnexen closed this in 8a221e2 Dec 10, 2022
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.

3 participants