History log of /PHP-8.1/ext/pcntl/pcntl.c (Results 1 – 25 of 241)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# f7be15db 02-Aug-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Revert the fix for GH-11498

People relied on manually waiting for children, but the fix for GH-11498
broke this. Fixing this in PHP is fundamentally incompatible with doing
the wait

Revert the fix for GH-11498

People relied on manually waiting for children, but the fix for GH-11498
broke this. Fixing this in PHP is fundamentally incompatible with doing
the wait loop in userland. This reverts to the old behaviour.

Closes GH-11863.

show more ...


# 46e9c510 04-Jul-2023 Ilija Tovilo

Use waitpid(-1) over WAIT_ANY

This macro is only available in glibc.

Closes GH-11588


# 003cf9da 26-Jun-2023 Ilija Tovilo

Fix use of uninitialized memory in pcntl SIGCHLD handling

psig needs to stay the tail, so that we don't get a dangling element on the end.

Closes GH-11536


# 931d8d05 24-Jun-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Add missing WUNTRACED

I forgot to add this in GH-11509.

Closes GH-11526.


# f39b5139 22-Jun-2023 nielsdos <7771979+nielsdos@users.noreply.github.com>

Fix GH-11498: SIGCHLD is not always returned from proc_open

Linux, and maybe other unixes, may merge multiple standard signals into
a single one. This causes issues when keeping track of

Fix GH-11498: SIGCHLD is not always returned from proc_open

Linux, and maybe other unixes, may merge multiple standard signals into
a single one. This causes issues when keeping track of process IDs.
Solve this by manually checking which children are dead using waitpid().

Test case is based on taka-oyama's test code.

Closes GH-11509.

show more ...


# ad85e714 03-Mar-2023 Kévin Dunglas

fix: support for timeouts with ZTS on Linux (#10141)


# 5ecbb1b3 08-Nov-2022 Erki Aring

Fix GH-9298: remove all registered signal handlers in pcntl RSHUTDOWN


Revision tags: php-8.1.7RC1
# 5017240c 24-May-2022 Christoph M. Becker

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Fix pcntl Haiku build


# e33de9dd 23-May-2022 David Carlier

Fix pcntl Haiku build

guarding SIGIO constant.

Closes GH-8612.

# 4b90eef9 04-Mar-2022 Christoph M. Becker

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Fix GH-8142: Compilation error on cygwin


Revision tags: php-8.1.4RC1
# 8b15858c 23-Feb-2022 David Carlier

Fix GH-8142: Compilation error on cygwin

* pcntl: SIGPOLL/si_band is unsupported
* intl: enable the signal apis with `_POSIX_C_SOURCE`

Closes GH-8146.

Revision tags: php-8.1.3
# be22018f 09-Jan-2022 David Carlier

Fix pcntl_rfork build for DragonFlyBSD

RFTSIGZMB flag unsupported, guarding with the said flag instead of system
in case the implementaion catches up with FreeBSD's.

Closes GH-7

Fix pcntl_rfork build for DragonFlyBSD

RFTSIGZMB flag unsupported, guarding with the said flag instead of system
in case the implementaion catches up with FreeBSD's.

Closes GH-7918.

show more ...

Revision tags: php-8.1.2RC1, php-8.1.0, php-7.3.33, php-7.3.32, php-7.3.31, php-7.3.30, php-7.3.29
# 007046fd 31-May-2021 David Carlier

pcntl_rfork: following-up suggestions.

removing RFMEM constant.
treating beforehand the only case where rfork would return EINVAL.

# fa9cb6c3 31-May-2021 Nikita Popov

Fix typo in constant name

# 660585e2 31-May-2021 Joe Watkins

fix stub for pcntl_rfork

# 28382aa1 23-May-2021 David Carlier

pcntl: Adding pcntl_rfork support.

# 20ef6689 31-May-2021 David CARLIER

pcntl add darwin specific flags for who/which especially (#7075)

PRIO_DARWIN_BG to be on part with pthread QOS class and
energy efficiency.

# 485a42f4 18-May-2021 Nikita Popov

Work around incorrect NSIG on FreeBSD

# 2068d230 12-May-2021 George Peter Banyard

Fix [-Wstrict-prototypes] warning in PCNTL extension

To achieve this we need to introduce a new wrapper function with
dummy arguments which calls pcntl_signal_dispatch() to respect
t

Fix [-Wstrict-prototypes] warning in PCNTL extension

To achieve this we need to introduce a new wrapper function with
dummy arguments which calls pcntl_signal_dispatch() to respect
the function pointer signature for a tick function.

show more ...

# 01b3fc03 06-May-2021 KsaR

Update http->https in license (#6945)

1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as

Update http->https in license (#6945)

1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |

show more ...

Revision tags: php-7.3.28
# 4196438b 12-Apr-2021 Christoph M. Becker

Merge branch 'PHP-8.0'

* PHP-8.0:
Fix #79812: Potential integer overflow in pcntl_exec()


# d74c61c1 12-Apr-2021 Christoph M. Becker

Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
Fix #79812: Potential integer overflow in pcntl_exec()


# 0a36d417 09-Apr-2021 Christoph M. Becker

Fix #79812: Potential integer overflow in pcntl_exec()

We use the proper type, and make sure that no overflow can occur by
using `safe_emalloc()` (we can assume that neither string lengt

Fix #79812: Potential integer overflow in pcntl_exec()

We use the proper type, and make sure that no overflow can occur by
using `safe_emalloc()` (we can assume that neither string length is
`SIZE_MAX`).

Closes GH-6845.

show more ...

Revision tags: php-7.3.27
# 3e01f5af 15-Jan-2021 Nikita Popov

Replace zend_bool uses with bool

We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.

Of course, zend_bool

Replace zend_bool uses with bool

We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.

Of course, zend_bool is retained as an alias.

show more ...

Revision tags: php-7.3.26, php-7.3.26RC1, php-7.3.25, php-7.3.25RC1, php-7.3.24
# c23eefb1 22-Oct-2020 Nikita Popov

Don't leak pcntl last_error across requests

12345678910