amphp / ext-uv

Other
191 stars 28 forks source link

Using UV_IGNORE in uv_spawn #73

Closed ghost closed 4 years ago

ghost commented 5 years ago

The libuv documentation has an example that specifies flags of the stdio field to ignore to UV_IGNORE to skip over it, however this extension starts in uv_spawn with 0 and simply increments the key (ignoring the given array indexes).

Would the only way to not use a stdio field be by explicitely mapping to /dev/null (which is what libuv does behind the scene)?

ghost commented 4 years ago

@bwoebi status?

bwoebi commented 4 years ago

I think we should be explicit, but now you can actually use $ignored_stdio_pipe = uv_stdio_new(); in the array.