Giter Site home page Giter Site logo

Comments (9)

trowski avatar trowski commented on June 7, 2024

Hi @mlasri-web2!

I thought the zombie process was fixed in amphp/process, see PosixHandle::waitPid(), which should be invoked by the event-loop callback which is awaiting the exit code pipe for the process. Would you be able to have a look to see if there's any reason the waitPid function is not being invoked?

from parallel.

medy36 avatar medy36 commented on June 7, 2024

Hi @trowski, am reopening the subject again as we kept deleting the .sock files left in /tmp/ using a job. temporary solution for these zombies.

The actual situation is we use the Process in two ways, CLI and HTTP. the CLI does close the .sock files properly, but the same service in Symfony controller (POST http endpoint) does leave One .sock in each request: srwxrwxrwx 1 www-data www-data 0 Apr 5 00:53 amp-parallel-ipc-87cff776753e279b1e56.sock.

Note: PosixHandle::asyncWaitPid is invoked

Am still trying to figure out the reason and a solution.

from parallel.

trowski avatar trowski commented on June 7, 2024

The temporary .sock file should be removed by LocalIpcHub::unlink(), which should be invoked in the destructor. Can you have a look if this function is being invoked, and if not, why that might be happening? We are suppressing errors there, you could try removing that suppression to see if there is an unexpected error (though if the file was created, I'd expect removing it to succeed as well).

from parallel.

medy36 avatar medy36 commented on June 7, 2024

@trowski thank you for pointing the LocalIpcHub::unlink() i found out that amp/parallel was in version V2.2.2 which does not include the destructor().

The upgrade works perfectly!
Thank you very much.

from parallel.

trowski avatar trowski commented on June 7, 2024

@medy36 Thanks for confirming my recent changes fixed the issue!

from parallel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.