Hacker Poesy
  • FAQ
  • Login
  • Public

    • Public
    • Groups
    • Recent tags
    • Popular
    • Directory

Conversation:

Notices

  1. maiyannah (maiyannah)'s status on Sunday, 27-Nov-2016 21:01:42 EST maiyannah maiyannah
    Remote profile options...
    • 馬鹿野狐(ばかやこ)✔
    @takeshitakenji I guess you just want to remove them from the array of PIDs, or do you need to do other cleanup tasks?
    Sunday, 27-Nov-2016 21:01:42 EST from community.highlandarrow.com permalink
    • maiyannah (maiyannah)'s status on Sunday, 27-Nov-2016 21:08:01 EST maiyannah maiyannah
      Remote profile options...
      • 馬鹿野狐(ばかやこ)✔
      @takeshitakenji You could also do the cleanup when you detect the process is dead if you need to.

      As to how to do so it depends on how certain you need to be that it is in fact dead.  (And not hung etc)

      The easiest way is something like exec("ps -A|grep {$pid}"); but exec is disabled in a lot of setups for security reasons.   The proper way depends on how you're spawning the process.
      Sunday, 27-Nov-2016 21:08:01 EST permalink
    • maiyannah (maiyannah)'s status on Sunday, 27-Nov-2016 21:09:43 EST maiyannah maiyannah
      Remote profile options...
      • 馬鹿野狐(ばかやこ)✔
      @takeshitakenji Thought: you could check for the existence of /proc/{$pid}
      Sunday, 27-Nov-2016 21:09:43 EST permalink
    • maiyannah (maiyannah)'s status on Sunday, 27-Nov-2016 21:14:43 EST maiyannah maiyannah
      Remote profile options...
      • 馬鹿野狐(ばかやこ)✔
      @takeshitakenji You will definitely want the sleep in there, but I think it should be okay to do that as long as you have that.
      Sunday, 27-Nov-2016 21:14:43 EST permalink
    • maiyannah (maiyannah)'s status on Sunday, 27-Nov-2016 21:16:44 EST maiyannah maiyannah
      Remote profile options...
      • 馬鹿野狐(ばかやこ)✔
      @takeshitakenji The GS train has no brakes.
      Sunday, 27-Nov-2016 21:16:44 EST permalink
    • maiyannah (maiyannah)'s status on Sunday, 27-Nov-2016 21:26:25 EST maiyannah maiyannah
      Remote profile options...
      • 馬鹿野狐(ばかやこ)✔
      • Purple Hippo
      @purplehippo @takeshitakenji Well, Takeshi is working on multiple processes, so, thats kind of similar
      Sunday, 27-Nov-2016 21:26:25 EST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Hacker Poesy is a GNU social hub. It runs version 1.1.3-beta3, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Hacker Poesy content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.