Skip to content
Snippets Groups Projects
  1. Dec 01, 2009
    • Brad King's avatar
      KWSys: List processes with "ps -ef" on OpenSolaris · b9b9aeda
      Brad King authored
      In order to kill process trees we need to list all processes to find
      those whose parent we are killing.  We implement process listing on
      OpenSolaris by using "ps -ef" and parsing the resulting format:
      
           UID   PID  PPID   C    STIME TTY         TIME CMD
           %*s    %d    %d   %*[^\n]\n
      b9b9aeda
    • Brad King's avatar
      KWSys: Use "ps -Af" for process list on QNX · 5f7195d1
      Brad King authored
      In order to kill process trees we need to list all processes to find
      those whose parent we are killing.  We implement process listing on QNX
      using "ps -Af" and parsing the resulting format:
      
        UID        PID       PPID  C STIME TTY          TIME CMD
        %*d         %d         %d  %*[^\n]\n
      5f7195d1
  2. Nov 30, 2009
    • Brad King's avatar
      KWSys: Fix process tree kill on 64-bit Windows · b8b6840c
      Brad King authored
      We enumerate processes to identify those whose parent is being killed so
      that we can recursively kill the children.  Enumeration uses the
      Process32(First|Next) windows API functions, which accept PROCESSENTRY32
      objects to be filled.  This commit corrects the declaration of the entry
      structure to account for its size on 64-bit Windows.
      b8b6840c
    • Brad King's avatar
      KWSys: Restore SIGSTOP/SIGKILL to end process tree · 2988287a
      Brad King authored
      On UNIX systems we kill a tree of processes by performing a DFS walk of
      the tree.  We send SIGSTOP to each process encountered, recursively
      handle its children, and then send SIGKILL.
      
      We once used the above approach in the past, but it was removed by the
      commit "Do not send both SIGSTOP and SIGKILL when killing a process".
      The commit was meant to work-around an OS X 10.3 bug in which the child
      would not always honor SIGKILL after SIGSTOP.  At the time we wrongly
      assumed that the process tree remains intact after SIGKILL and before
      the child is reaped.  In fact the grandchildren may be re-parented to
      ppid=1 even before the child is reaped, which causes the DFS walk to
      miss them.
      2988287a
  3. Nov 24, 2009
  4. Nov 23, 2009
  5. Nov 20, 2009
    • Brad King's avatar
      KWSys: Set CMP0003 to NEW · 359775b9
      Brad King authored
      The commit "Enable loose loop constructs in KWSys" set the minimum
      required CMake version to 2.4.5.  This regressed the setting of CMP0003,
      so we restore it in this commit.
      359775b9
    • Brad King's avatar
      Fix KWSys FundamentalType for Universal Binaries · bf7f0ddc
      Brad King authored
      The FundamentalType header needs to know type sizes at preprocessing
      time.  This commit teaches it to avoid using CHECK_TYPE_SIZE because the
      macro does not work for types whose size varies across architectuers in
      Mac OS X universal binaries.  Fortunately the Mac compilers provide just
      enough information to detect the needed type sizes during preprocessing.
      
      We now use preprocessor macros instead of configuration tests whenever
      they are available.  As a side effect this reduces the number of
      try-compiles needed with GCC.
      
      See issue #9913.
      bf7f0ddc
    • Brad King's avatar
      Create KWSYS_PLATFORM_INFO_TEST macro · 4e6c4519
      Brad King authored
      This macro helps KWSys perform try-compile tests that extract 'INFO'
      strings out of compiled binaries.  It works for CMake 2.6 and above.
      On CMake 2.4 it always returns an empty list of information values,
      so this should be used only as an optimization until 2.6 is required.
      4e6c4519
    • Brad King's avatar
      Check for 'long long' without computing size · 9782e865
      Brad King authored
      In KWSys IOStream we need to detect whether 'long long' exists but we do
      not need its size.  We avoid using CHECK_TYPE_SIZE because it does not
      work for types whose size varies across architectuers in Mac OS X
      universal binaries.  See issue #9913.
      9782e865
    • Brad King's avatar
      Enable loose loop constructs in KWSys · daaaeb0f
      Brad King authored
      We set CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS in KWSys's CMakeLists.txt file
      to enable simpler endif() syntax for CMake 2.4.
      daaaeb0f
  6. Nov 18, 2009
    • David Cole's avatar
      Fix bogus calls to GetMemoryStatus and GetMemoryStatusEx: need to set the... · 22b9bef4
      David Cole authored
      Fix bogus calls to GetMemoryStatus and GetMemoryStatusEx: need to set the dwLength member of the struct prior to calling. Otherwise it's just a garbage value from the stack. Also, pay attention to return value of GetMemoryStatusEx: if it indicates failure then just return 0 without using any of the other data the call returns.
      22b9bef4
  7. Nov 16, 2009
  8. Nov 15, 2009
  9. Oct 19, 2009
  10. Oct 16, 2009
  11. Oct 09, 2009
  12. Oct 08, 2009
  13. Oct 06, 2009
  14. Sep 30, 2009
  15. Sep 28, 2009
    • Brad King's avatar
      Convert KWSys to OSI-approved BSD License · 62db264e
      Brad King authored
      This converts the KWSys license to a pure 3-clause OSI-approved BSD
      License.  We drop the previous license clause requiring modified
      versions to be plainly marked.  We also update the KWSys copyright to
      cover the full development time range.
      62db264e
    • Brad King's avatar
      Install KWSys Copyright.txt as documentation · 1fb49641
      Brad King authored
      This commit adds KWSys configuration option KWSYS_INSTALL_DOC_DIR to
      specify the directory for installation of documentation.  We use it to
      put the KWSys Copyright.txt file at the location
      
        ${KWSYS_INSTALL_DOC_DIR}/${KWSYS_NAMESPACE}/Copyright.txt
      
      in the project installation tree.  This helps containing projects meet
      the license requirement to distribute the copyright and license with
      binary forms.
      1fb49641
  16. Sep 25, 2009
  17. Sep 24, 2009
    • Brad King's avatar
      Restore KWSys SystemTools _WIN32 state on cygwin · f71bac73
      Brad King authored
      The commit "Fix KWSys SystemTools build on cygwin with -mwin32" tried to
      restore the state of the _WIN32 definition that was broken by the commit
      "Optimize KWSys SystemTools::FileExists on Windows".  It did so for the
      case of building with -mwin32 on cygwin, but since including <windows.h>
      defines _WIN32, it failed for the case of not using -mwin32.
      
      This commit restores the state of _WIN32 in all cases by undefining it
      after including <windows.h> if it was not defined beforehand.
      f71bac73
  18. Sep 23, 2009
    • Brad King's avatar
      Fix KWSys SystemTools build on cygwin with -mwin32 · 853959a4
      Brad King authored
      Commit "Optimize KWSys SystemTools::FileExists on Windows" accidentally
      added "#undef _WIN32" when including <windows.h> on cygwin, which breaks
      builds using the -mwin32 flag.  This commit removes that line and fixes
      the real error it was intended to avoid.
      853959a4
  19. Sep 22, 2009
  20. Sep 14, 2009
  21. Sep 03, 2009
    • Brad King's avatar
      COMP: Silence useless Borland inlining warning · f3beae21
      Brad King authored
      KWSys tries not to force anything on source files that include its
      headers, but Borland warning 8027 leaves us no choice when we want to
      have inline function definitions.  This commit disables the warning for
      the RegularExpression header and any file that includes it.
      f3beae21
  22. Aug 31, 2009
    • Brad King's avatar
      Define kwsys_ios_binary macro for std::ios::binary · 9350c584
      Brad King authored
      The 'binary' openmode does not exist on all compilers.  We define macro
      <kwsys>_ios_binary, where <kwsys> is the KWSys namespace, to refer to
      std::ios::binary if it exists and 0 otherwise.  Sample usage:
      
        kwsys_ios::ifstream fin(fn, kwsys_ios::ios::in | kwsys_ios_binary);
      9350c584
  23. Aug 06, 2009
  24. Jul 27, 2009
  25. Jul 26, 2009
  26. Jul 24, 2009
Loading