Alex Merry
76c03ded89
Add unit tests for async exit watching with multiple io_contexts
...
These tests fail without the commit "Only reap children we are watching
for when handling SIGCHLD" applied, and succeed with it applied.
2018-02-21 15:13:28 +00:00
Klemens Morgenstern
e6fa19b4c5
Merge pull request #145 from amerry/async-wait-fix
...
Only reap children we are watching for when handling SIGCHLD
2018-02-20 19:53:54 +01: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
Klemens Morgenstern
c37e2a7524
Merge pull request #142 from cls/search_path_returns_dir
...
Fix search_path not to return directories on POSIX
2018-02-14 15:41:58 +01:00
Connor Lane Smith
a610fe74ff
Fix search_path not to return directories on POSIX
2018-02-14 13:56:34 +00:00
Klemens Morgenstern
ea49952da2
Merge pull request #141 from markus-t314/fix_issue139
...
Fix: Inconsistent behaviour in various overloaded functions/methods #139
2018-02-09 21:15:19 +01: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 Morgenstern
9f6c338631
Merge pull request #140 from klemens-morgenstern/develop
...
master update
2018-02-07 00:19:10 +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
Klemens David Morgenstern
f30d90a179
Merge remote-tracking branch 'remotes/boostorg/develop' into develop
2018-02-05 23:32:17 +01:00
Klemens Morgenstern
55cfcecfb8
Merge pull request #27 from adrianimboden/develop
...
fix use of uninitalized variable
2018-02-05 23:16:21 +01:00
Klemens Morgenstern
233f46a2cb
Merge pull request #30 from cinghiale/patch-1
...
update the code snippets to reflect the doc
2018-02-05 23:15:15 +01:00
Markus Tillinger
342554b3d8
Fixed inconsistent posix-wait-handling
...
Refactored: Removed duplicated code
Made wait_until compatible with steady_clock
2018-02-03 22:11:37 +01:00
Markus Tillinger
7aa812a0e1
Fix: [posix] inconsistent exit status when child received signal #136
2018-02-03 17:47:14 +01:00
Klemens Morgenstern
c4ffd0c18d
Merge pull request #135 from klemens-morgenstern/develop
...
Appveyor fixes
2018-02-02 23:26:12 +01:00
Klemens David Morgenstern
a411f06dc4
Merge remote-tracking branch 'remotes/origin/master' into develop
...
# Conflicts:
# test/Jamfile.jam
# test/async_system_stackless.cpp
2018-02-02 22:37:32 +01:00
Klemens David Morgenstern
d085262076
added /bigobj flag for msvc
2018-02-02 22:14:42 +01:00
Klemens David Morgenstern
0396740467
splitted up the async_system tests
2018-02-02 21:52:14 +01:00
Klemens Morgenstern
0fd7de9481
Merge pull request #134 from hrayrbabajanyan/patch-1
...
eval_exit_status would return 0 in case if the child received SIBABRT
2018-02-01 20:44:00 +01:00
hrayrbabajanyan
ba790dad0a
eval_exit_status would return 0 in case if the child received SIBABRT
2018-02-01 02:53:24 +04:00
David Mugnai
f2e8776965
update the code snippets to reflect the doc
2018-01-23 23:35:54 +01:00
Adrian Imboden
444d5eb702
fix use of uninitalized variable
2018-01-06 13:36:42 +01:00
Egor Pugin
3e12e989ab
Fix initialization of atomic var. This fixes mingw build.
2018-01-06 14:04:32 +03:00
klemens-morgenstern
917030c3cd
Merge branch 'develop'
2017-11-11 01:02:31 +01:00
Klemens Morgenstern
faf848bd8b
Merge pull request #125 from ca-l-eb/fixes
...
Fix async_pipe reassignment and child_decl
2017-11-05 15:39:13 -05:00
Caleb Dechant
d78c7901b3
Revert async_pipe dtor to original
2017-11-05 11:48:20 -08:00
Klemens Morgenstern
09e98d8746
Merge pull request #122 from egorpugin/develop
...
Fix multithreaded async pipes creation.
2017-11-05 13:47:56 -05:00
Egor Pugin
ab6e5b54ec
Rename to io_context
2017-11-05 20:21:49 +03:00
Egor Pugin
b268e0e1fb
Change atomic var to size_t.
2017-11-05 17:28:42 +03:00
Caleb Dechant
996f4b357c
Fix child_decl's move constructor
...
The _terminated field is now copied from the moved child.
2017-11-04 17:25:00 -07:00
Caleb Dechant
8ce3e760dc
Fix async_pipe move assignment and destructor
...
Simplify async_pipe's move assignment so it now properly closes the old
pipe handles by swapping the asio stream_descriptors.
Reassigning async_pipes previously raised exceptions complaining about
EBADF or EEXIST. I think the ::close calls in the destructor and the
move assignment were not closing the pipe correctly.
2017-11-04 17:22:15 -07:00
klemens-morgenstern
6e60928b1f
Merge branch 'develop' of github.com:boostorg/process into develop
2017-11-03 00:14:23 +01:00
Klemens Morgenstern
e27baa7628
Merge pull request #24 from ca-l-eb/fix-terminate
...
Fix move assignment for child_decl
2017-11-02 19:13:17 -04:00
Caleb Dechant
337a6e3e83
Fix move assignment for child
...
_terminate field is now copied from the move assingment operator on
child. This fixes the issue that a child process could previously only
be terminated() once (even after reassignment).
2017-11-02 16:03:05 -07:00
klemens-morgenstern
bbfc334c93
split up the async_system test
2017-10-28 13:04:01 +02:00
klemens-morgenstern
1a9fa2cc2c
Merge branch 'develop'
2017-10-28 12:09:36 +02:00
klemens-morgenstern
1296e02372
Merge branch 'develop' of github.com:klemens-morgenstern/boost-process into develop
2017-10-25 18:49:13 +02:00
klemens-morgenstern
585104605e
removed variadic arg in test
2017-10-25 18:48:55 +02:00
Klemens Morgenstern
d0c07b7c63
Update windows_specific.cpp
2017-10-25 12:20:00 +02:00