History log of /php-src/ext/pcntl/pcntl.c (Results 1 – 25 of 268)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 23640542 20-Apr-2024 David CARLIER

ext/pcntl: pcntl_fork refining error handling. (#14021)


# d4072667 11-Apr-2024 David Carlier

ext/pcntl: pcntl_getqos_class/pcntl_setqos_class addition.

Introducting macOs Quality Of Service through those two calls.
on macOs arm64/M*, there is no concept of individual cores, thus

ext/pcntl: pcntl_getqos_class/pcntl_setqos_class addition.

Introducting macOs Quality Of Service through those two calls.
on macOs arm64/M*, there is no concept of individual cores, thus
the old thread policy for cpu affinity does not work here.
Instead, the user can apply to the current process the level of
performance/energy consumption they wish from the highest
QosClass::UserInteractive to QosClass::Background.

Close GH-13945

show more ...


# 7c860628 07-Apr-2024 David CARLIER

ext/pcntl: getpriority/setpriority `who` default value handling change. (#13911)

0 refers to the calling process, all across unixes, thus saving one
syscall.


# d8f290057 07-Apr-2024 David Carlier

ext/pcntl: adding pcntl_getcpu.

using sched_getcpu under the hood (Linux and FreeBSD).
Returns the current cpu id for the current process.
For Linux, we need to see beyond the sole p

ext/pcntl: adding pcntl_getcpu.

using sched_getcpu under the hood (Linux and FreeBSD).
Returns the current cpu id for the current process.
For Linux, we need to see beyond the sole presence of the symbol
to consider it.
Mostly useful, for now, in the cpu affinity context since
the os can migrate processes as it sees fits otherwise.

Clos GH-13908

show more ...


# dd2ffaab 07-Apr-2024 David CARLIER

ext/pcntl: pcntl affinity improves EINVAL handling in both cases. (#13907)

also disable tests on travis.


# 01817e99 07-Apr-2024 David Carlier

ext/pcntl pcntl_signal_get_handler update.

The situation varies from platform to another, thus taking in
account the complexity of it.

Close GH-13902


# 1cf8291c 05-Apr-2024 David Carlier

ext/pcntl: cpu affinity api introduction.

For now, working on Linux, FreeBSD >= 13.x and DragonFlyBSD.
Handy wrapper to assign an array of cpu ids or to retrieve the cpu ids
assigned

ext/pcntl: cpu affinity api introduction.

For now, working on Linux, FreeBSD >= 13.x and DragonFlyBSD.
Handy wrapper to assign an array of cpu ids or to retrieve the cpu ids
assigned to a given process.

pcntl_setaffinity inserts valid unique cpu ids (within the range of available
cpus).

Close GH-13893

show more ...


# 25081385 04-Apr-2024 David CARLIER

ext/pcntl: pcnt_setns few nitpicks changes. (#13885)


# ae4978a1 03-Apr-2024 David Carlier

ext/pcntl: adding pcntl_setns for Linux >= 5.3

allows a given process to join an existing Linux namespace, relatively
complementary to the existing pcntl_unshare.

Close GH-13878


# 7db7c420 02-Apr-2024 David CARLIER

ext/pcntl: pcntl_unshare minor error message clarification (for EINVAL). (#13872)

it is not necessarily a bad flag but can just be unsupported by the
current kernel.


# 1bdb0fdd 16-Nov-2023 Gina Peter Banyard

Refactor pcntl_sigprocmask()/pcntl_sigwaitinfo()/pcntl_sigtimedwait() (#11860)


# 5465cea8 15-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Remove unused variable 'error' (#12438)

Will also get rid of the potential allocation happening in
zend_is_callable_ex().


# bc4807c5 18-Sep-2023 George Peter Banyard

ext/pcntl: Remove useless call to zend_get_callable_name() (#12241)

Result of it is unused


# 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 ...


# a0e71cb8 06-May-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix maximum argument count of pcntl_forkx()

Closes GH-11199.


# ad85e714 03-Mar-2023 Kévin Dunglas

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


# 81aedad4 08-Feb-2023 David Carlier

opcache/pcntl/cli: Fixes few functions signatures.


# 7936c808 23-Jan-2023 Máté Kocsis

Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)


# 5ecbb1b3 08-Nov-2022 Erki Aring

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


# 03fd4054 06-Sep-2022 Tim Düsterhus

Use php_info_print_table_header for actual column headers only (#9485)

Using php_info_print_table_header() for "Foo: bar" looks odd and out of place,
because the whole line is colored. I

Use php_info_print_table_header for actual column headers only (#9485)

Using php_info_print_table_header() for "Foo: bar" looks odd and out of place,
because the whole line is colored. It is also questionable from a HTML
semantics point of view, because it does not described the columns that follow.

The use of this across extensions is inconsistent. It was part of the skeleton,
but ext/date or ext/json already use a regular row.

show more ...


Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22
# 962baf77 01-Aug-2022 Máté Kocsis

Declare ext/pcntl constants in stubs (#9075)

1234567891011