diff options
| author | Papoteur <papoteur@mageia.org> | 2026-02-02 13:58:22 +0100 |
|---|---|---|
| committer | Papoteur <papoteur@mageia.org> | 2026-02-02 13:58:22 +0100 |
| commit | 1d135cfa975bc8f3478f226931e772f74e0abd4c (patch) | |
| tree | 91dcacf9b55a1fca3c7116bec656178d6722a94f /mdk-stage1/rp-pppoe/doc | |
| parent | 3e68bc91b99cc848c84c74c55a5a0aa40f391c78 (diff) | |
| download | drakx-master.tar drakx-master.tar.gz drakx-master.tar.bz2 drakx-master.tar.xz drakx-master.zip | |
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/doc')
0 files changed, 0 insertions, 0 deletions
