Skip to content

Commit be22018

Browse files
devnexencmb69
authored andcommitted
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.
1 parent 4833362 commit be22018

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ PHP NEWS
99
- FPM:
1010
. Fixed memory leak on invalid port. (David Carlier)
1111

12+
- pcntl:
13+
. Fixed pcntl_rfork build for DragonFlyBSD. (David Carlier)
14+
1215
06 Jan 2022, PHP 8.1.2RC1
1316

1417
- Core:

ext/pcntl/pcntl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,9 +1528,11 @@ PHP_FUNCTION(pcntl_rfork)
15281528
flags |= RFPROC;
15291529
}
15301530

1531+
#ifdef RFTSIGZMB
15311532
if ((flags & RFTSIGZMB) != 0) {
15321533
flags |= RFTSIGFLAGS(csignal);
15331534
}
1535+
#endif
15341536

15351537
pid = rfork(flags);
15361538

0 commit comments

Comments
 (0)