Giter VIP home page Giter VIP logo

naruto's Issues

Is this project active?

Hi all.

I want to help, but I want to know if this project is active. Is this project active?

有点疑问

  1. 刚才阅读了代码,好像没发现可以 作为服务,或者 daemon 守护进程使用。Naruto\Daemon 好像是用来管理进程。这样,如果关闭终端,脚本不是会终止吗?
  2. 多进程开发,如果涉及守护进程 首先运行脚本,当前脚本fock一个进程作为master,然后脚本终止。master进程再fork出work进程,work进程负责处理业务部分。但是你这好像是 脚本进程作为master进程,然后fork出work进程,而且work进程的存活与否是通过shell命令来统计出来的。这样做的话,如果work进程变成僵尸进程怎么办。正常情况,work进程作为master进程,其异常终止时都会告知master,然后可以根据情况是否master再fork新的work进程。
  3. 程序 启动之后,会一直处于前台。stop和reload命名只能重新开启终端来操作,但是 reload好像会重新加载程序,但是之前因为没有停止,会继续运行,导致,会出现双倍的进程。

PS:刚接触多进程开发,可能表达的有错误的地方,请帮忙指出,谢谢。

Daemon 监听子进程数量问题

您好,最近也想写一个类似进程管理的东西,阅读了您的项目代码,有点小疑问,Daemon 里面有一个 check 方法来监听进程,方法里面有一个判断条件 !empty($manager->waitSignalProcessPool['signal']), 当第一次 reload 之后 waitSignalProcessPool['signal'] 变量,一直都是有值得,之后 Daemon->check 方法应该是一直处于不工作状态。是不是应该在 重启完所有子进程后(waitSignalProcessPool['pool'] 为空后),将整个 waitSignalProcessPool 变量置空呢?

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.