         forceKillThread.join()
     }
 }
+#endif

        self.register(name: "\(process.arguments.joined(separator: " "))", handler:  process.terminate)
    }

    public func register(_ process: Foundation.Process) -> RegistrationKey? {
        self.register(name: "\(process.description)", handler: process.terminate(timeout:))
    }

    public func deregister(_ key: RegistrationKey) {
        self.registry[key] = nil

    }
}

#if !os(iOS) && !os(watchOS) && !os(tvOS)
extension Foundation.Process {
    fileprivate func terminate(timeout: DispatchTime) {
        // send graceful shutdown signal (SIGINT)
