Unified Unix Agent 2.0.5: zombie processes when running in daemon mode

Bug #1087270 reported by Marco Tizzoni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Fix Released
Medium
Frank

Bug Description

When running the Unified Unix Agent 2.0.5 on Linux in daemon mode zombie processes .

The cause is in the Agent/Modules/Download.pm file.
It forks but the parent process never catches its pid:

# We have jobs, we do it alone
        my $fork = fork();
        if($fork>0){
                return 0; <<-- HERE RETURNS TO THE PARENT
        }elsif($fork<0){
                return 1;
        }else{
                 [...]
        }

Revision history for this message
Frank (frank-bourdeau) wrote :

Hi Marco,

Thanks for your return. We will integrate your patch.

Changed in ocsinventory-unix-agent:
importance: Undecided → Medium
assignee: nobody → Frank (frank-bourdeau)
Revision history for this message
Marco Tizzoni (marco-tizzoni) wrote :
description: updated
Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
status: New → Fix Committed
mortheres (mortheres)
Changed in ocsinventory-unix-agent:
milestone: none → 2.1rc1
Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.