Class ProcessUtils


  • public class ProcessUtils
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void waitForSafely​(java.lang.Process process)
      This should be workaround for https://en.wikipedia.org/wiki/Spurious_wakeup which real can happen in case of processes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final Logger LOG
    • Constructor Detail

      • ProcessUtils

        public ProcessUtils()
    • Method Detail

      • waitForSafely

        public static void waitForSafely​(java.lang.Process process)
        This should be workaround for https://en.wikipedia.org/wiki/Spurious_wakeup which real can happen in case of processes. See http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2015-June/032350.html thread
        Parameters:
        process - process to be waited for