-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Conversation
22885e2
to
787d202
Compare
787d202
to
c6bf3b5
Compare
sapi/litespeed/lsapi_main.c
Outdated
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; | ||
} |
There was a problem hiding this comment.
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.
sapi/litespeed/lsapi_main.c
Outdated
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; | ||
} |
There was a problem hiding this comment.
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);
sapi/litespeed/lsapilib.c
Outdated
@@ -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 ) |
There was a problem hiding this comment.
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.
c6bf3b5
to
8b43232
Compare
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 |
oh those changes are not bug fixes, so I targeted only master but if @cmb69 advise lower branches l can adapt. |
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. |
helpers only called on linux anyways, proper C calls prototypes.