mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: ext/pcntl: fix pcntl_getcpuaffinity() for solaris.
This commit is contained in:
4
NEWS
4
NEWS
@@ -33,6 +33,10 @@ PHP NEWS
|
||||
. Fixed bug GH-20674 (mb_decode_mimeheader does not handle separator).
|
||||
(Yuya Hamada)
|
||||
|
||||
- PCNTL:
|
||||
. Fixed bug with pcntl_getcpuaffinity() on solaris regarding invalid
|
||||
process ids handling. (David Carlier)
|
||||
|
||||
- Phar:
|
||||
. Fixed bug GH-20732 (Phar::LoadPhar undefined behavior when reading fails).
|
||||
(ndossche)
|
||||
|
||||
@@ -94,7 +94,7 @@ typedef cpuset_t *cpu_set_t;
|
||||
#elif defined(HAVE_PSET_BIND)
|
||||
#include <sys/pset.h>
|
||||
typedef psetid_t cpu_set_t;
|
||||
#define sched_getaffinity(p, c, m) pset_bind(PS_QUERY, P_PID, (p <= 0 ? getpid() : p), &m)
|
||||
#define sched_getaffinity(p, c, m) pset_bind(PS_QUERY, P_PID, p, &m)
|
||||
#define sched_setaffinity(p, c, m) pset_bind(m, P_PID, (p <= 0 ? getpid() : p), NULL)
|
||||
#define PCNTL_CPUSET(mask) mask
|
||||
#define PCNTL_CPU_ISSET(i, mask) (pset_assign(PS_QUERY, (processorid_t)i, &query) == 0 && query == mask)
|
||||
|
||||
Reference in New Issue
Block a user