From 8e86f771fb49f475a64f048bf5cd211f350a4edc Mon Sep 17 00:00:00 2001 From: feri220899 <61813824+feri220899@users.noreply.github.com> Date: Thu, 20 Aug 2026 15:03:24 +0700 Subject: [PATCH] fix: tambah fpm_trace_continue() pada backend trace mach Menambahkan fungsi untuk melanjutkan (SIGCONT) proses yang sebelumnya dihentikan via ptrace di backend macOS, melengkapi fungsi stop yang sudah ada. --- sapi/fpm/fpm/fpm_trace_mach.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sapi/fpm/fpm/fpm_trace_mach.c b/sapi/fpm/fpm/fpm_trace_mach.c index 092858e287d4..464426bdadcc 100644 --- a/sapi/fpm/fpm/fpm_trace_mach.c +++ b/sapi/fpm/fpm/fpm_trace_mach.c @@ -51,6 +51,15 @@ int fpm_trace_signal(pid_t pid) /* {{{ */ } /* }}} */ +int fpm_trace_continue(pid_t pid) /* {{{ */ +{ + if (0 > fpm_pctl_kill(pid, FPM_PCTL_CONT)) { + zlog(ZLOG_SYSERROR, "failed to send SIGCONT to %d", pid); + return -1; + } + return 0; +} + int fpm_trace_ready(pid_t pid) /* {{{ */ { kern_return_t kr;