Skip to content
Snippets Groups Projects
  1. Jun 19, 2013
  2. May 09, 2011
  3. Jun 04, 2010
    • Mark Harrison's avatar
      Store the file handle as well as the pid in children. (fixes #14) · 54a78eb3
      Mark Harrison authored
      It is used in the clean up function. Incidentally, this fixes a really
      annoying issue where the check timeout functionality broken. The cause of the
      check timeout functionality breaking was a scoping issue - the reader file
      handle falls out of scope when the alarm fires and dies, and it waits until
      the process finishes before passing control back to resmon. Storing the file
      handle prevents it from being cleaned up until after we kill the process in
      the clean_up function later on.
      
      git-svn-id: https://labs.omniti.com/resmon/branches/resmon2@416 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
      54a78eb3
    • Mark Harrison's avatar
      Greatly simplify how run_command works. (refs #14) · 7ca9e9c3
      Mark Harrison authored
      The original intent was to fix bad behavior when a command doesn't exist. Upon
      looking further into the implementation of the run_command function, I
      realized that using open achieved the same effect (backticks but we get a
      process id out of it) without a lot of code that didn't quite work when the
      exec failed.
      
      git-svn-id: https://labs.omniti.com/resmon/branches/resmon2@414 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
      7ca9e9c3
  4. Apr 20, 2010
    • Mark Harrison's avatar
      Allow run_command to take a list instead of a string. · 11be7832
      Mark Harrison authored
      When it does this, commands are not executed via the shell, but are executed
      directly. (See the documentation for 'exec' for an explanation of this).
      Existing modules that pass a string are unaffected.
      
      The rationale for this change is for the Pgrep (and similar) modules, where it
      was picking up the 'sh -c pgrep' process and including it in the process
      count. Executing pgrep directly prevents this.
      
      git-svn-id: https://labs.omniti.com/resmon/branches/resmon2@309 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
      11be7832
  5. Mar 28, 2010
  6. Mar 25, 2010
  7. Mar 21, 2010
  8. Mar 18, 2010
  9. Feb 18, 2010
  10. Mar 21, 2007
Loading