Skip to content
Commit b14958d5 authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

Perl: do not leak FD to child process. This fixes #5797.

Centreon Connector Perl works parsing Perl scripts in a main
process. When a script execution is requested, the Connector
fork()s itself and child processes run one of the already parsed
script. However because of the fork() mechanism, children inherit
file descriptors of pipes already open towards previously forked
children. This behavior can freeze Centreon Connector Perl
(read/write on the other end of pipe maintained alive by a dead
process). This commit closes all unnecessary file descriptors in
children.
parent 6922a224
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment