Klemens Morgenstern
57e9dfb705
Merge pull request #179 from klemens-morgenstern/develop
...
Update for master
2018-09-26 13:50:47 +07:00
Klemens David Morgenstern
4fd8887601
fixed group wait-for on windows
2018-09-26 11:50:18 +07:00
Lemmy
3cf4bf6480
Hope fully fixed group waiting
2018-09-25 17:32:32 +02:00
Lemmy
6ba8e88def
wait-group fix
2018-09-25 11:45:04 +02:00
Lemmy
0938103427
Reworked wait_for_exit, concerns #99 and #112
2018-09-25 10:45:54 +02:00
Lemmy
e72127f9f8
Implemented proper wait_for for group_handles
2018-09-25 10:27:40 +02:00
Lemmy
eea73753b5
Fixed group wait in linux
2018-09-25 07:40:07 +02:00
Klemens David Morgenstern
4f3b425073
fixed group-wait, finally
2018-09-25 02:37:51 +07:00
Klemens David Morgenstern
dcb8a0266a
preserving creation_flags, closes #176
2018-09-24 23:42:53 +07:00
Klemens David Morgenstern
99285a9de6
fixed windows-h variant
2018-09-24 23:27:01 +07:00
Klemens David Morgenstern
6cc31b93d8
readded BOOST_WINAPI_WINAPI_CC
2018-09-24 23:10:33 +07:00
Klemens David Morgenstern
d1ce19d848
fixes #178
2018-09-21 10:48:03 +07:00
Klemens David Morgenstern
8d2bd87707
ALternative (typeless) implementation of #177
2018-08-29 09:37:07 +08:00
Klemens David Morgenstern
44162ecf22
removed errornous noexcept
2018-06-19 18:34:39 +08:00
Klemens David Morgenstern
9549ffe7e1
capture list fix
2018-05-27 11:39:56 +02:00
Klemens David Morgenstern
dd0edb4aee
Merge branch 'develop' of github.com:klemens-morgenstern/boost-process into develop
2018-05-26 22:07:15 +02:00
Klemens David Morgenstern
3029f4623a
closes #41
2018-05-26 22:06:54 +02:00
Klemens David Morgenstern
74606db379
Merge branch 'bugfixing' into develop
2018-05-26 22:00:12 +02:00
Klemens David Morgenstern
81803868a3
closes #45
2018-05-26 21:59:58 +02:00
Klemens David Morgenstern
eff42f91ef
closes #42
2018-05-26 21:57:25 +02:00
Klemens David Morgenstern
a25b6ca35b
closes #32
2018-05-26 21:55:07 +02:00
Klemens David Morgenstern
52f030a83c
closes #167
2018-05-26 20:32:08 +02:00
Egor Pugin
9cc651bdeb
Add missing returns on windows side.
2018-05-09 20:09:32 +03:00
Tomasz Jonak
41b7e30c18
Add missing return to async_pipe::async_{read,write}_some
2018-05-04 14:03:54 +00:00
Klemens Morgenstern
35fda5aa6a
Update job_workaround.hpp
2018-04-05 20:12:51 +02:00
Klemens Morgenstern
d47b7f7ac4
Update job_workaround.hpp
2018-04-05 10:08:00 +02:00
Klemens David Morgenstern
c5798fdf7f
added write_some and read_some overloads - closes #35
2018-03-13 10:11:01 +08:00
Klemens David Morgenstern
5e43e7c07c
Merge branch 'develop' of github.com:boostorg/process into develop
2018-03-11 20:58:22 +01:00
Andrey Semashev
900aab5d6d
Switched WINAPI calling convention macros to the replacements from Boost.WinAPI
...
WINAPI macro definition in Boost.WinAPI is deprecated as it may clash with
the macro defined in Windows SDK.
2018-03-11 20:20:49 +03:00
Alex Merry
6625999765
Check the "still running" status code does not clash with WIFSIGNALED
...
This makes the static_assert reflect the actual assumptions in the code.
2018-02-22 14:31:22 +00:00
Alex Merry
0d3688aca5
Ignore stopped processes
...
is_running should only concern itself with terminated processes, not
stopped processes (which might be continued later).
2018-02-22 14:12:46 +00:00
Klemens Morgenstern
40be786c43
Merge pull request #150 from amerry/async-exit-status
...
Return the same exit status in the async handler as the sync method
2018-02-22 13:43:06 +01:00
Klemens Morgenstern
d4a0444223
Merge pull request #147 from amerry/args
...
Always set arguments on POSIX
2018-02-22 13:05:33 +01:00
Alex Merry
ed32531369
Return the same exit status in the async handler as the sync method
...
Previously, if the process terminated via a signal on posix, the async
handler would provide an exit status of 0.
2018-02-22 11:53:42 +00:00
Alex Merry
8aaf53d76d
Always set arguments on POSIX
...
Explicitly specifying an executable (either with boost::filesystem::path
or boost::process::exe) and no arguments causes NULL to be passed as the
argument list.
Not only is this unexpected behaviour for the child process (which
doesn't even have argv[0]), it is not portable across UNIX systems. From
the execve(2) man page on Linux:
"On Linux, either argv or envp can be specified as NULL, which has the
same effect as specifying these arguments as a pointer to a list
containing a single NULL pointer. Do not take advantage of this
misfeature! It is nonstandard and nonportable: on most other UNIX
systems doing this will result in an error (EFAULT)."
2018-02-21 15:43:32 +00:00
Alex Merry
92ee239891
Only reap children we are watching for when handling SIGCHLD
...
There may be other io_context instances with child instances, and child
instances with no associated io_context. If we pass 0 to ::waitpid(), we
will reap their processes as well, without updating the state of the
corresponding child instance.
Instead, we call `::waitpid` once for each child we are watching for.
This has some amount of overhead (multiple system calls), but ensures
correct behaviour (providing nothing other than an asio::signal_set is
watching for SIGCHLD).
2018-02-20 14:32:33 +00:00
Connor Lane Smith
a610fe74ff
Fix search_path not to return directories on POSIX
2018-02-14 13:56:34 +00:00
Markus Tillinger
a55946eb5d
Fix: Inconsistent behaviour in various overloaded functions/methods #139
...
Removed duplicated code in overloaded functions.
Replaced system_clock with steady_clock.
2018-02-08 21:49:49 +01:00
Klemens David Morgenstern
60302c0017
Merge branch 'develop' of github.com:klemens-morgenstern/boost-process into develop
2018-02-06 20:20:18 +01:00
Klemens David Morgenstern
08eaf8b7a1
added BOOST_NO_ANSI_APIS support, closes #26
2018-02-06 20:20:02 +01:00
Klemens Morgenstern
cc70ec9362
Update pipe_in.hpp
2018-02-06 10:29:16 +01:00
Klemens Morgenstern
b58ecc7c9d
Update async_in.hpp
2018-02-06 10:27:16 +01:00
Klemens Morgenstern
668cbcdaf4
Update windows.hpp
2018-02-06 10:23:02 +01:00
Klemens David Morgenstern
6d7cbd0989
closes #83
2018-02-06 00:32:55 +01:00
Klemens David Morgenstern
0764f788a6
typo fix
2018-02-06 00:24:45 +01:00
Klemens David Morgenstern
2b95dd7011
Merge branch 'develop' of github.com:klemens-morgenstern/boost-process into develop
2018-02-06 00:08:26 +01:00
Klemens David Morgenstern
ae380c30ad
added CREATE_NO_WINDOW flags, closes #129
2018-02-06 00:07:35 +01:00
Klemens Morgenstern
d2265890bd
Merge pull request #138 from markus-t314/consistent_wait_handling
...
Fixed inconsistent posix-wait-handling
2018-02-05 23:42:04 +01:00
Klemens Morgenstern
831d49c1b3
Merge pull request #137 from markus-t314/fix_issue136
...
Fix: [posix] inconsistent exit status when child received signal #136
2018-02-05 23:38:59 +01:00
Klemens Morgenstern
6935c53510
Merge pull request #132 from egorpugin/patch-1
...
Fix initialization of atomic var. This fixes mingw build.
2018-02-05 23:34:11 +01:00