close
Skip to content

fix: tambah fpm_trace_continue() pada backend trace mach - #23391

Open
feri220899 wants to merge 1 commit into
php:masterfrom
feri220899:origin/fix-memory-lag
Open

fix: tambah fpm_trace_continue() pada backend trace mach#23391
feri220899 wants to merge 1 commit into
php:masterfrom
feri220899:origin/fix-memory-lag

Conversation

@feri220899

Copy link
Copy Markdown

Description

This PR adds support for resuming a process (SIGCONT) that was previously stopped via ptrace in the macOS backend.

The macOS backend already provides functionality for stopping a traced process. This change complements that behavior by adding the corresponding resume functionality, allowing a stopped process to continue execution when required.

This makes the process-control behavior more complete and provides a proper counterpart to the existing stop operation on macOS.

Changes

  • Added functionality to resume a previously stopped process using SIGCONT.
  • Integrated the resume operation into the macOS ptrace backend.
  • Complements the existing process-stop functionality.

Menambahkan fungsi untuk melanjutkan (SIGCONT) proses yang sebelumnya dihentikan via ptrace di backend macOS, melengkapi fungsi stop yang sudah ada.

@NickSdot NickSdot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • maybe you want to add a test to show what this is supposed to do?
  • can you please change the PR title to English?

}
/* }}} */

int fpm_trace_continue(pid_t pid) /* {{{ */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You do not call this from anywhere?

@LamentXU123 LamentXU123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't understand, this function you added seems to not have any call sites, and only adds dead code.

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