summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/process.c
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <saghul@gmail.com>2015-12-13 12:07:04 +0100
committerSaúl Ibarra Corretgé <saghul@gmail.com>2015-12-14 21:53:42 +0100
commit69b94ec55cb0f8bd90475b5b7dabd57beb7e7dfe (patch)
treed2afb35396d77e45647e1818357a7e17b2be2244 /deps/uv/src/unix/process.c
parente0bb118a1d5f8b6b1eb2405f2dc19b8118f8ec0e (diff)
downloadandroid-node-v8-69b94ec55cb0f8bd90475b5b7dabd57beb7e7dfe.tar.gz
android-node-v8-69b94ec55cb0f8bd90475b5b7dabd57beb7e7dfe.tar.bz2
android-node-v8-69b94ec55cb0f8bd90475b5b7dabd57beb7e7dfe.zip
deps: upgrade libuv to 1.8.0
Fixes: https://github.com/nodejs/node/issues/3718 PR-URL: https://github.com/nodejs/node/pull/4276 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/uv/src/unix/process.c')
-rw-r--r--deps/uv/src/unix/process.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/uv/src/unix/process.c b/deps/uv/src/unix/process.c
index 9fa061e6bc..571f8cd778 100644
--- a/deps/uv/src/unix/process.c
+++ b/deps/uv/src/unix/process.c
@@ -270,6 +270,11 @@ static void uv__write_int(int fd, int val) {
}
+#if !(defined(__APPLE__) && (TARGET_OS_TV || TARGET_OS_WATCH))
+/* execvp is marked __WATCHOS_PROHIBITED __TVOS_PROHIBITED, so must be
+ * avoided. Since this isn't called on those targets, the function
+ * doesn't even need to be defined for them.
+ */
static void uv__process_child_init(const uv_process_options_t* options,
int stdio_count,
int (*pipes)[2],
@@ -375,11 +380,16 @@ static void uv__process_child_init(const uv_process_options_t* options,
uv__write_int(error_fd, -errno);
_exit(127);
}
+#endif
int uv_spawn(uv_loop_t* loop,
uv_process_t* process,
const uv_process_options_t* options) {
+#if defined(__APPLE__) && (TARGET_OS_TV || TARGET_OS_WATCH)
+ /* fork is marked __WATCHOS_PROHIBITED __TVOS_PROHIBITED. */
+ return -ENOSYS;
+#else
int signal_pipe[2] = { -1, -1 };
int (*pipes)[2];
int stdio_count;
@@ -528,6 +538,7 @@ error:
}
return err;
+#endif
}