PHP PCNTL - what does pcntl_signal () restart_syscalls do?

I have been using the PHP PCNTL extension for a while, but cannot figure out what the parameter is restart_syscalls pcntl_signal(). I tried looking around the internet but could not find any information. All documentation says:

"Indicates whether to restart the system call when this signal arrives."

What is system call restart?

+4
source share
1 answer

Suppose you programmed a signal handler to stop the process using signals such as:

  • SIGTERM: ; , SIGKILL.
  • SIGKILL:
  • SIGSTOP:

restart_syscalls , , signo. signo , .

, restart_syscalls , , signo. , , .

: pcntl_wait SIGTERM

+2

Source: https://habr.com/ru/post/1609731/


All Articles