mirror of
https://github.com/wassname/ray.git
synced 2026-08-14 12:40:23 +08:00
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.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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
|
||||
--
|
||||
Reference in New Issue
Block a user