pcntl_async_signals Enable/disable asynchronous signal handling or return the old setting

发表日期:2021-07-01 08:56:15 | 来源: | | 浏览(514) 分类:PCNTL 函数

pcntl_async_signals

(PHP 7 >= 7.1.0, PHP 8)

pcntl_async_signalsEnable/disable asynchronous signal handling or return the old setting

说明

pcntl_async_signals(bool $on = null): bool

If the on parameter is omitted, pcntl_async_signals() returns whether asynchronous signal handling is enabled. Otherwise, asynchronous signal handling is enabled or disabled.

参数

on

Whether asynchronous signal handling should be enabled.

返回值

When used as getter (that is without the optional parameter) it returns whether asynchronous signal handling is enabled. When used as setter (that is with the optional parameter given), it returns whether asynchronous signal handling was enabled before the function call.

参见

  • declare
集速网 copyRight © 2015-2022 宁ICP备15000399号-1 宁公网安备 64010402001209号
与其临渊羡鱼,不如退而结网
欢迎转载、分享、引用、推荐、收藏。