 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+import Darwin
 import Foundation
-
 
 /// Encapsulates functionality to launch and manage Processes.
 public final class ProcessRunner {

          let newValue = change?[NSKeyValueChangeKey.newKey] as? NSNumber,
          newValue.boolValue,
          let process = object as? Process {
        pendingLogHandles[process]?.resetStartTime()
      }
    }
  }

        process.removeObserver(self,
                               forKeyPath: #keyPath(Process.isRunning),
                               context: &TimedProcessRunnerObserver.KVOContext)
        accessPendingLogHandles { pendingLogHandles in
          _ = pendingLogHandles.removeValue(forKey: process)
        }
      }
    }

