summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/rp-pppoe/README
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2026-02-02 13:58:22 +0100
committerPapoteur <papoteur@mageia.org>2026-02-02 13:58:22 +0100
commit1d135cfa975bc8f3478f226931e772f74e0abd4c (patch)
tree91dcacf9b55a1fca3c7116bec656178d6722a94f /mdk-stage1/rp-pppoe/README
parent3e68bc91b99cc848c84c74c55a5a0aa40f391c78 (diff)
downloaddrakx-master.tar
drakx-master.tar.gz
drakx-master.tar.bz2
drakx-master.tar.xz
drakx-master.zip
Avoid an infinite loop (mga#35061)HEADmaster
When `waitpid` returns `-1` (which corresponds to `ECHILD` - no child process), here's what happens in the loop: 1. `$child_pid = waitpid(-1, POSIX::WNOHANG)` assigns `-1` to `$child_pid` 2. The condition `undef $pid if $pid == $child_pid` is evaluated, but it probably does nothing (unless `$pid` was already `-1`) 3. The condition `until $child_pid > 0` is tested: `-1 > 0` is **false** **This is an infinite loop!** until $child_pid <= 0; # stop when there are no more children to reap
Diffstat (limited to 'mdk-stage1/rp-pppoe/README')
0 files changed, 0 insertions, 0 deletions