History log of /libuv/src/unix/process.c (Results 101 – 125 of 132)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# d4737abd 08-Aug-2012 Ben Noordhuis

unix: remove dead code in process.c

uv_spawn() saves and restores the environ in case the child clobbers it -
which is impossible because the child process runs in a separate address spa

unix: remove dead code in process.c

uv_spawn() saves and restores the environ in case the child clobbers it -
which is impossible because the child process runs in a separate address space.

show more ...

# 47f496aa 08-Aug-2012 Ben Noordhuis

unix: simplify stdio handling in process.c

# 13467a40 08-Aug-2012 Ben Noordhuis

unix: retrieve execve() errors in process.c

Make the forked child process send the errno to its parent process when it
fails to spawn a new process.

# bf28aa4e 08-Aug-2012 Ben Noordhuis

unix: drop SPAWN_WAIT_EXEC guard in process.c

Code cleanup. This "experimental" feature was always enabled anyway, might as
well remove the define guard.

Revision tags: node-v0.8.6, node-v0.8.5, node-v0.6.21, node-v0.8.3, node-v0.9.0, node-v0.8.2, node-v0.8.1, node-v0.8.0, node-v0.7.12, node-v0.7.11
# 5d5688f2 14-Jun-2012 Bert Belder

unix: always set CLOEXEC flag for child process stdio FDs

# ddb5f559 11-Jun-2012 Ben Noordhuis

unix: simplify uv__make_pipe() and uv__make_socketpair()

Revision tags: node-v0.7.10, node-v0.6.19
# a30e45f1 02-Jun-2012 Fedor Indutny

unix: remap fds 0-2 to /dev/null if ignore flag set

# f5b5127d 31-May-2012 Fedor Indutny

change spawn() api to allow using existing streams for stdio

This commit also adds support for this api on Unix.

# 69a923bf 01-Jun-2012 Charlie McConnell

process: implement UV_PROCESS_DETACHED flag for uv_spawn

Revision tags: node-v0.7.9
# c0081f0e 09-May-2012 Fedor Indutny

unix: allow specifying FDs to be inherited by a child process

Previously the only option was to create a pipe or an ipc channel. This
patch makes it possible to inherit a handle that is

unix: allow specifying FDs to be inherited by a child process

Previously the only option was to create a pipe or an ipc channel. This
patch makes it possible to inherit a handle that is already open in the
parent process. It also makes it possible to set more than just stdin,
stdout and stderr.

show more ...

# 9efa8b35 17-May-2012 Ben Noordhuis

unix, windows: rework reference counting scheme

This commit changes how the event loop determines if it needs to stay alive.

Previously, an internal counter was increased whenever a

unix, windows: rework reference counting scheme

This commit changes how the event loop determines if it needs to stay alive.

Previously, an internal counter was increased whenever a handle got created
and decreased again when the handle was closed.

While conceptually simple, it turned out hard to work with: you often want
to keep the event loop alive only if the handle is actually doing something.
Stopped or inactive handles were a frequent source of hanging event loops.

That's why this commit changes the reference counting scheme to a model where
a handle only references the event loop when it's active. 'Active' means
different things for different handle types, e.g.:

* timers: ticking
* sockets: reading, writing or listening
* processes: always active (for now, subject to change)
* idle, check, prepare: only active when started

This commit also changes how the uv_ref() and uv_unref() functions work: they
now operate on the level of individual handles, not the whole event loop.

The Windows implementation was done by Bert Belder.

show more ...

Revision tags: node-v0.6.18
# e3875548 02-May-2012 Bert Belder

Unix: namespace stream handle flags

# 1ebe14e4 02-May-2012 Ben Noordhuis

linux: fix build error with old kernel headers

O_CLOEXEC was introduced in linux 2.6.23, don't assume it's available.

Fixes #400.

Revision tags: node-v0.6.16
# 99a995a6 27-Apr-2012 Bert Belder

uv_spawn: support setting the child process' user and group id

Revision tags: node-v0.6.17, node-v0.7.8, node-v0.6.15
# 5a8446c3 04-Apr-2012 Ben Noordhuis

unix: move handle specific close logic out of core.c

# 685b36ba 31-Mar-2012 Ben Noordhuis

linux: tidy up syscall code

# 31ff9863 28-Mar-2012 Bulat Shakirzyanov

unix: fix TARGET_OS_IPHONE conditional

Revision tags: node-v0.6.14
# 4ff0898c 19-Mar-2012 Ben Noordhuis

unix: replace uv__close() with close()

uv__close() was deprecated a while ago. It's been an alias for close() ever
since. Remove it.

Revision tags: node-v0.6.13, node-v0.7.6, node-v0.6.12
# ec0eff95 28-Feb-2012 Ben Noordhuis

Revert b3e0ad4, 149d32c, e99fdf0 and ea9baef.

Detaching doesn't work yet, the setsid() call fails and leaves the child process
attached to the parent's session.

Revert "test: Ad

Revert b3e0ad4, 149d32c, e99fdf0 and ea9baef.

Detaching doesn't work yet, the setsid() call fails and leaves the child process
attached to the parent's session.

Revert "test: Add test case for spawning detached child processes."
Revert "win: Implement options.detached for uv_spawn() for Windows."
Revert "unix: Implement options.detached for uv_spawn() for unix."
Revert "Add "detached" member to uv_process_options_t to denote whether a child
process should spawn detached from its parent."

This reverts commit ea9baef95ce2208dbf65cba0ddcd90be5492a648.
This reverts commit e99fdf0df6738dc9addc432f091896d7f37f7731.
This reverts commit 149d32cb96592fc5037c7072e1a3ab9a3fa888a6.
This reverts commit b3e0ad4db850a76d1d2c722f93402b3b9f453c55.

show more ...

# 57c5fa1a 25-Feb-2012 Ben Noordhuis

unix: fix build on iOS

_NSGetEnviron() doesn't exist on iOS, use plain `extern char **environ` instead.

# 149d32cb 23-Feb-2012 Charlie McConnell

unix: Implement options.detached for uv_spawn() for unix.

Revision tags: node-v0.6.11, node-v0.7.4, node-v0.6.10, node-v0.7.2, node-v0.6.9, node-v0.7.1, node-v0.7.0, node-v0.6.8, node-v0.6.7
# 3dd4ecb4 28-Dec-2011 Ryan Dahl

unix: expose uv__make_socketpair, uv__make_pipe in unix/internal.h

Revision tags: node-v0.6.6, node-v0.6.4, node-v0.6.3, node-v0.6.2
# d5b26154 17-Nov-2011 Ben Noordhuis

linux: improve kernel feature detection

Do not check for minimum kernel and glibc versions, just check that the kernel
headers export the syscall number and invoke the syscall directly.

linux: improve kernel feature detection

Do not check for minimum kernel and glibc versions, just check that the kernel
headers export the syscall number and invoke the syscall directly. Effectively
bypasses glibc.

show more ...

Revision tags: node-v0.6.1
# 4794c12f 09-Nov-2011 Ben Noordhuis

linux: fall back to traditional syscalls if necessary

libuv uses feature checks to determine if newer syscalls like pipe2() are
available. This works fine until someone compiles libuv ag

linux: fall back to traditional syscalls if necessary

libuv uses feature checks to determine if newer syscalls like pipe2() are
available. This works fine until someone compiles libuv against kernel headers
that are newer than the actual kernel our software runs on.

Fall back to traditional (but race-y!) syscalls when the kernel reports ENOSYS
or EINVAL.

show more ...

Revision tags: node-v0.6.0
# 74b49e82 02-Nov-2011 Igor Zinkovsky

uv_kill

123456