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

1379 Commits

Author SHA1 Message Date
Klemens Morgenstern
c8179a99e0 Checking waitpid res for zombie process reaping.
Fixes comment by @mathisloge in issue #447.
2025-05-24 09:38:36 +08:00
Klemens Morgenstern
cd1621b197 fixed major resume/suspend typo
Closes #481.
2025-04-28 23:57:20 +08:00
Klemens Morgenstern
1baccf76cd pipe bindings use a type_trait. 2025-04-15 00:31:56 +08:00
Klemens Morgenstern
06595a2070 added BOOST_PROCESS_V2_DISABLE_SIGNALSET option 2025-04-14 23:55:23 +08:00
Klemens Morgenstern
7e712985c1 added BOOST_PROCESS_V2_PIPEFORK option 2025-04-14 23:55:23 +08:00
Klemens Morgenstern
da08060021 Set ENOTSUP when PROC_PPID_ONLY is undefined
closes #452
2025-04-14 23:54:14 +08:00
Klemens Morgenstern
afdbab734e Removed char_count
Closes #473
2025-04-14 23:53:30 +08:00
Klemens Morgenstern
9dcd1a2775 added duplication check for SIGINFO
Closes #474
2025-04-14 23:51:35 +08:00
Osyotr
5756891558 Fix wide strings conversion on POSIX
This commit effectively reverts #179 which shouldn't have been merged in the first place. See https://github.com/boostorg/filesystem/pull/163#issuecomment-786794483 for more info.
2025-04-14 23:49:00 +08:00
RK-BFX
1d6c9ed0ec Fix conflicting pipe name in independent plug-in DLLs
Include numerical representation of local static variable's address into the pipe name to discriminate Boost.Process instances in independent DLLs.

Fixes #476

Also (auto-)remove excessive concurrent empty lines.
2025-04-14 23:48:00 +08:00
Yury Bura
a941c8e89c Add BOOST_PROCESS_USE_STD_FS option 2025-04-14 23:46:36 +08:00
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