Zombie processes due exec

Hans-Christian Esperer hc at hcesperer.org
Sun Jan 20 22:59:36 CET 2019


Hi,

I'm running freeradius 3.17. I'm using the exec module, which calls a python
script. A zombie process is always left after the script terminates. That
zombie process "lives" until the script is run again, no matter how long the
interval is between two script runs. So no big deal, only one zombie process.
But still it shouldn't be that way, so I thought I'd report it. Perhaps I'm
missing something?

Exec is configured like this:

exec execaf {
        wait = no
        input_pairs = request
        shell_escape = yes
        timeout = 10
        program = /usr/local/etc/raddb/eventfoo/eventfoo.py
}

It is called from the accounting {} section of the default site.

The python script always calls sys.exit(0), returning success.

This is the relevant htop output:

30478 freeradiu  23   0 62856 39520 S  0.0  1.0  0:02.80    ├─ /usr/local/sbin/radiusd
73486 freeradiu  73   0     0     0 Z  0.0  0.0  0:00.43    │  └─ python3.6 /usr/local/etc/raddb/eventfoo/eventfoo.py

Thanks,
 HC


More information about the Freeradius-Users mailing list