ray/thirdparty/patches/boost-process-teminate-waitpid-nohang.patch
mehrdadn fb8e3615d5 Use Boost.Process instead of pid_t (#6510)
* Use Boost.Process instead of pid_t

This will let us handle child processes (mostly) uniformly across platforms.
TODO: There is no SIGTERM on Windows; achieving something equivalent is fairly involved.
2020-01-15 20:05:02 -08:00

14 lines
572 B
Diff

From 28126b3432433c025606a84474c7afb5dec88daf Mon Sep 17 00:00:00 2001
From: Klemens David Morgenstern <klemens.morgenstern@gmx.net>
Date: Sun, 12 May 2019 17:02:25 +0700
Subject: [PATCH] osx fix
---
diff --git include/boost/process/detail/posix/terminate.hpp include/boost/process/detail/posix/terminate.hpp
index 84024a5..e1e5f33 100644
--- boost/process/detail/posix/terminate.hpp
+++ boost/process/detail/posix/terminate.hpp
@@ -30,1 +30,1 @@
- ::waitpid(p.pid, &status, 0); //just to clean it up
+ ::waitpid(p.pid, &status, WNOHANG); //just to clean it up
--