Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Shumilov <[email protected]>
  • Loading branch information
PetrShumilov committed Oct 28, 2024
1 parent 8af5e3f commit 5c2b6e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions common/ucontext/ucontext-portable-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ TEST(ucontext_portable, swapcontext) {
ASSERT_EQ(finished, 1);
}

/*
Imitation of `do { i++; } while (i < 10)`
*/
volatile int context_set_cnt {0};
TEST(ucontext_portable, get_and_setcontext) {
getcontext_portable(&ctx3);
Expand Down
2 changes: 1 addition & 1 deletion server/php-runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void PhpScript::error(const char *error_message, script_error_t error_type, [[ma
stack_end = reinterpret_cast<char *>(get_context_stack_ptr_portable(exit_context)) + get_context_stack_size_portable(exit_context);

#if defined(__linux__) && defined(__x86_64__)
// The error may be produced in process of signal handling. The default behavior on Linux-based platforms
// The PhpScript::error may be produced in process of signal handling. The default behavior on Linux-based platforms
// consider to block a signal during handler execution and unblock after handler ending.
// For x86_64 arch we have context replacement implementation where the signals manipulations is omitted by design,
// e.g. we do not save signals state in context replacement.
Expand Down
2 changes: 1 addition & 1 deletion server/signal-handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void sigusr2_handler(int signum) {
void php_assert_handler(int signum) {
kwrite_str(2, "in php_assert_handler (SIGRTMIN+1 signal)\n");
if (check_signal_critical_section(signum, "SIGRTMIN+1")) {
perform_error_if_running("php assert error\n", script_error_t::php_assert,signum);
perform_error_if_running("php assert error\n", script_error_t::php_assert, signum);
}
}

Expand Down

0 comments on commit 5c2b6e2

Please sign in to comment.