2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-19 04:22:15 +00:00

1418 Commits

Author SHA1 Message Date
Klemens Morgenstern
89d2cc325a Update index.html
Fixes #479
2025-04-11 23:31:02 +08:00
js-nano
e637f8483d Fix up usage of std::move_backward
The destinations should point to the *end* of the destination range

https://en.cppreference.com/w/cpp/algorithm/move_backward
boost-1.88.0.beta1 boost-1.88.0
2025-03-06 17:39:28 +08:00
Klemens Morgenstern
94aa3b6b43 fixed environ for OSX
closes #453
2025-02-27 10:13:22 +08:00
Klemens Morgenstern
d7df711628 remove :: from dirfd
closes #461
2025-02-27 10:12:55 +08:00
SimonMaracine
8ae055bfbd Remove optional dependency on filesystem when not meant to be
Build previously failed when BOOST_PROCESS_USE_STD_FS was ON, because filesystem was linked to regardless.
2025-02-21 08:09:42 +08:00
Jonas Greitemann
ab28b511a9 fix v1 tests after v2 became the default
As of 2ccd97cd48, v2 is the default when using the unversioned includes.
This broke the v1 tests which were still using those.
2025-02-21 08:08:36 +08:00
SimonMaracine
529fb1e222 Fix include directives from boost/process/posix/*.hpp having wrong paths 2025-02-21 08:08:17 +08:00
Jens Diewald
d534ed6c34 Fix small yet confusing Typo in Doc 2025-02-05 19:27:55 +08:00
Dirk Stolle
bb375f50bd Fix several typos 2025-01-23 07:45:16 +08:00
Dirk Stolle
c329e05fb6 chore: remove executable flags from .cpp files
See <https://github.com/boostorg/admin/issues/47#issuecomment-2575165830>.

[ci skip]
2025-01-21 21:55:11 +08:00
Ryan Zoeller
b781b49a97 doc: fix typo in stdio 2025-01-21 07:40:31 +08:00
Klemens Morgenstern
a2d2753aa8 zombie process fixes
closes #445, #447
2025-01-13 09:31:48 +08:00
Klemens Morgenstern
1b5272a9e1 changed cwd comparison to equivalent. 2025-01-13 08:36:36 +08:00
Jonas Greitemann
e842a060f1 implement move operations for process_io_binding and delete copy operations
This makes the test added in the previous commit pass.
2025-01-13 08:13:33 +08:00
Jonas Greitemann
4bb842564f add a (failing) test for process_stdio move semantics
This test currently fails on POSIX, as `process_io_binding` does not
explicitly implement move operations but holds on to a file descriptor
which exhibits reference semantics and has a non-trivial destructor.

The same test should pass on Windows as the Windows implementation makes
use of `unique_ptr` which gives it correct move semantics by virtue of
the rule of zero.
2025-01-13 08:13:33 +08:00
Jonas Greitemann
359820097b add test case for initializing process_stdio with complementary pipe ends
`process_stdio` holds on to the handles for `in`/`out`/`err`. In case of
pipes, `in` needs the handles of a `readable_pipe`, whereas `out` and
`err` need the handles of `writable_pipe`s. So far, the tests all create
a new pair using `connect_pipe`, pass the "correct" end into
`process_stdio`, and use the other end to interface with the process.

However, `process_io_binding` also supports construction from the
complementary pipe types, i.e., constructing `in`'s binding from a
`writable_pipe` and `out`/`err`'s bindings from `readable_pipe`s.
In this case, the constructor will create the corresponding pipe itself
and keep ownership of it. This mode was thus far not tested.
2025-01-13 08:13:33 +08:00
Klemens Morgenstern
b529769eb5 removed boost::system:: scope spec for error_code. 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
d75ffb30ee windows link fixes. 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
a6f2a1d005 windows fixes. 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
e1c6a9b09b attempting to fix msvc build. 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
9bd57d66b7 aded missing include to example/env.cpp 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
65251a2316 replace png with svg in install. 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
298b60caca fixed for v2 namespace inlining. 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
3fd8b2608c examples are compiled & included. 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
c33828a166 reference docs 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
2ccd97cd48 made v2 the default 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
7874a04958 switched to asciidoc 2024-12-20 20:53:29 +08:00
Klemens Morgenstern
b5eacaca51 disabled shell for android
Closes #440.
2024-12-20 10:09:54 +08:00
Klemens Morgenstern
2275057574 v2 uses PROC_THREAD_ATTRIBUTE_HANDLE_LIST for limiting fd
thanks @NVCherney for bring this to my attention.
2024-12-20 09:52:57 +08:00
Klemens Morgenstern
09a978d896 disabled gcc11 on freebsd 2024-12-20 09:50:51 +08:00
مهدي شينون (Mehdi Chinoune)
5cfdf3ec4c Fix building with CMake on MinGW-w64. (#439) 2024-12-20 09:49:55 +08:00
Alexander Grund
c0a23ae2c3 Fix Github Actions CI (#437)
* Fix Github Actions CI

Containerize old compiler jobs
Fix Node20 Glibc
Reformat job list to make it easier to update

* Fix install of packages

* Remove macos-12
2024-12-20 09:49:30 +08:00
tomy2105
64fc05c55d Add ability to auto link process library 2024-12-20 09:45:27 +08:00
Klemens Morgenstern
0f9dd52f02 added BOOST_PROCESS_V2_DISABLE_NOTIFY_FORK
See #430
2024-12-13 12:26:46 +08:00
Klemens Morgenstern
3fe2033062 fixes #431 2024-12-13 12:26:25 +08:00
Klemens Morgenstern
662c0b10e3 warning fixes
Closes #436, #437
2024-12-13 11:58:39 +08:00
Klemens Morgenstern
fa83c2f9ff fixes the exit-code error on osx builds. boost-1.87.0 2024-11-19 07:41:31 +08:00
Klemens Morgenstern
9925e82a5f fixed UB in limit_handles.
Closes #200.
2024-11-19 07:41:31 +08:00
Samuel Venable
7f03295c93 Solaris Fixes (#425)
* solaris fixes
2024-11-19 07:41:31 +08:00
Klemens Morgenstern
64c4cdac83 windows gcc compile fix boost-1.87.0.beta1 2024-11-13 08:26:07 +08:00
Klemens Morgenstern
58586e420c added deprecation notice for v1. 2024-10-30 09:05:20 +08:00
Samuel Venable
7e5dd4075f bp2::ext::env() Fixes (#415)
* Implement OpenBSD Executable PatH
* Static Cast Device and iNode
* Add Name Spaces to Exe Checker
* Strings to File System Paths

---------

Co-authored-by: freebsd <freebsd@freebsd.lan>
2024-10-30 09:05:20 +08:00
Samuel Venable
3ad68a3f2a [OpenBSD] Add Missing Semicolons (#414)
* [OpenBSD] Add Missing Semicolons
2024-10-30 09:05:20 +08:00
Samuel Venable
8a8ca8b7ab OpenBSD fix & Solaris fixes
[DragonFly BSD] Use Proper CWD From PID Code
2024-10-30 09:05:20 +08:00
Klemens Morgenstern
817128108a changed error macros to require a ; at the end. 2024-10-30 09:05:20 +08:00
Klemens Morgenstern
941e93b587 removed definition of NOMINMAX 2024-10-30 08:09:28 +08:00
Klemens Morgenstern
e827d14542 reduced asio related macro usage. 2024-10-30 08:09:28 +08:00
Klemens Morgenstern
f218a6a6c1 added pthread to test linking for freebsd on v1 as well. 2024-10-30 08:09:28 +08:00
Klemens Morgenstern
11a0d0d7c1 added pthread to test linking for freebsd 2024-10-30 08:09:28 +08:00
Klemens Morgenstern
fdfb5043cb add kvm to process target on bsd 2024-10-30 08:09:28 +08:00