~roguescholar/boost/+git/process:develop

Last commit made on 2024-06-04
Get this branch:
git clone -b develop https://git.launchpad.net/~roguescholar/boost/+git/process

Branch merges

Branch information

Name:
develop
Repository:
lp:~roguescholar/boost/+git/process

Recent commits

e455a12... by Daniel Klauer

posix: Add test for pipe fd leak if redirecting both stdout and stderr

Signed-off-by: Daniel Klauer <email address hidden>

e8b5bf1... by Daniel Klauer

posix: Fix pipe fd leak if redirecting both stdout and stderr

This re-adds the close(source) call which already existed here before
commit caa7b2fcc8. pipe_out already closes the source fd when redirecting
stdout or stderr, it was just missing when redirecting both at once.

The pipe fds must be closed after redirecting to avoid keeping the pipe
open unnecessarily, for example the parent may want to close their end of
the pipe.

Closes: https://github.com/boostorg/process/issues/353
Signed-off-by: Daniel Klauer <email address hidden>

20510ab... by Orgad Shaneh <email address hidden>

Doc: Add missing ctor param in example

0058a9c... by Daniel Klauer

posix: Fix exec error reporting with limit_handles

_pipe_sink was assigned after call_on_setup(), after limit_fd_::on_setup(),
but this was too late. It must be assigned earlier so that
executor::get_used_handles() can see it and prevent limit_handles from
closing the internal pipe for passing exec() errors from child to parent.

Fixes: 1a1d677d
Closes: https://github.com/boostorg/process/issues/202
Signed-off-by: Daniel Klauer <email address hidden>

a26f4fe... by zhixingchen <zhixingchen0629@163.com>

FIX: fix the posix terminate function implement.

ff5b383... by zhixingchen <zhixingchen0629@163.com>

FIX: fix the problem of sending the wrong signal.

0379ee6... by Samuel Venable <email address hidden>

Less dependency on libprocstat and various corrections.

On FreeBSD I would like to remove dependency on libprocstat completely, and replace it with libkvm to be more like the other *BSD platforms in terms of linker dependencies. This pull request is our first move in that direction.

Replace libprocstat with libkvm in cmd

193384a... by zhixingchen <email address hidden>

FIX(process): modify the internal logic call of resume without error code version.

406cd3e... by Christian Eggers <email address hidden>

v2: sync initial value for exit code with v1

The initial value for the exit_code (0x7f) in v2 doesn't work with musl libc.
Here WIFSIGNALED(0x7f) expands to a non-zero value:

http://git.musl-libc.org/cgit/musl/tree/include/sys/wait.h#n54

c6951ff... by Devon Morris <email address hidden>

fix call on moved variable in execute