process-spawn.c: switch uv_socketpair to uv_pipe
to remove the socket dependence Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
997379d14e
commit
77382e7209
@ -738,7 +738,7 @@ index 0f4bf938..dd36028b 100644
|
|||||||
time_base = loop->time;
|
time_base = loop->time;
|
||||||
diff --git a/src/unix/process-spawn.c b/src/unix/process-spawn.c
|
diff --git a/src/unix/process-spawn.c b/src/unix/process-spawn.c
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..78401ca5
|
index 00000000..755efc84
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/unix/process-spawn.c
|
+++ b/src/unix/process-spawn.c
|
||||||
@@ -0,0 +1,368 @@
|
@@ -0,0 +1,368 @@
|
||||||
@ -865,7 +865,7 @@ index 00000000..78401ca5
|
|||||||
+ if (container->data.stream->type != UV_NAMED_PIPE)
|
+ if (container->data.stream->type != UV_NAMED_PIPE)
|
||||||
+ return UV_EINVAL;
|
+ return UV_EINVAL;
|
||||||
+ else
|
+ else
|
||||||
+ return uv_socketpair(SOCK_STREAM, 0, fds, 0, 0);
|
+ return uv_pipe(fds, 0, 0);
|
||||||
+
|
+
|
||||||
+ case UV_INHERIT_FD:
|
+ case UV_INHERIT_FD:
|
||||||
+ case UV_INHERIT_STREAM:
|
+ case UV_INHERIT_STREAM:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user