Skip to content

uloop: allow reusing the existing environment for a new process#344

Open
nbd168 wants to merge 1 commit intojow-:masterfrom
nbd168:uloop-env
Open

uloop: allow reusing the existing environment for a new process#344
nbd168 wants to merge 1 commit intojow-:masterfrom
nbd168:uloop-env

Conversation

@nbd168
Copy link
Contributor

@nbd168 nbd168 commented Nov 19, 2025

When passing null as environment argument to uloop.process(), reuse existing environ.
This makes it possible to avoid having to duplicate and convert it by passing the output of getenv().

When passing null as environment argument to uloop.process(), reuse
existing environ.
This makes it possible to avoid having to duplicate and convert it
by passing the output of getenv().

Signed-off-by: Felix Fietkau <nbd@nbd.name>
@jow-
Copy link
Owner

jow- commented Nov 19, 2025

Explicit null leading to inheritance seems counterintuitive on a first glance. My gut feeling would be null == nothing == empty environment. What about true or a literal string "inherit"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants