mirror of
https://github.com/vale981/ray
synced 2025-03-08 19:41:38 -05:00

* 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.
14 lines
572 B
Diff
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
|
|
--
|