Skip to content

Commit

Permalink
bindings: add spawn_sync bindings
Browse files Browse the repository at this point in the history
This implements a nested event loop that makes it possible to control
a child process, while blocking the main loop until the process exits.
  • Loading branch information
piscisaureus committed Feb 10, 2014
1 parent d58c206 commit fa4eb47
Show file tree
Hide file tree
Showing 4 changed files with 1,311 additions and 0 deletions.
1 change: 1 addition & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
'src/pipe_wrap.cc',
'src/signal_wrap.cc',
'src/smalloc.cc',
'src/spawn_sync.cc',
'src/string_bytes.cc',
'src/stream_wrap.cc',
'src/tcp_wrap.cc',
Expand Down
21 changes: 21 additions & 0 deletions src/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ namespace node {
// for the sake of convenience.
#define PER_ISOLATE_STRING_PROPERTIES(V) \
V(address_string, "address") \
V(args_string, "args") \
V(async_queue_string, "_asyncQueue") \
V(async, "async") \
V(atime_string, "atime") \
Expand All @@ -66,10 +67,13 @@ namespace node {
V(close_string, "close") \
V(code_string, "code") \
V(ctime_string, "ctime") \
V(cwd_string, "cwd") \
V(detached_string, "detached") \
V(dev_string, "dev") \
V(disposed_string, "_disposed") \
V(domain_string, "domain") \
V(enter_string, "enter") \
V(env_pairs_string, "envPairs") \
V(errno_string, "errno") \
V(error_string, "error") \
V(exit_string, "exit") \
Expand All @@ -78,6 +82,8 @@ namespace node {
V(ext_key_usage_string, "ext_key_usage") \
V(family_string, "family") \
V(fatal_exception_string, "_fatalException") \
V(fd_string, "fd") \
V(file_string, "file") \
V(fingerprint_string, "fingerprint") \
V(flags_string, "flags") \
V(gid_string, "gid") \
Expand All @@ -86,12 +92,17 @@ namespace node {
V(heap_size_limit_string, "heap_size_limit") \
V(heap_total_string, "heapTotal") \
V(heap_used_string, "heapUsed") \
V(ignore_string, "ignore") \
V(immediate_callback_string, "_immediateCallback") \
V(inherit_string, "inherit") \
V(ino_string, "ino") \
V(input_string, "input") \
V(ipv4_string, "IPv4") \
V(ipv6_string, "IPv6") \
V(issuer_string, "issuer") \
V(kill_signal_string, "killSignal") \
V(mark_sweep_compact_string, "mark-sweep-compact") \
V(max_buffer_string, "maxBuffer") \
V(message_string, "message") \
V(method_string, "method") \
V(mode_string, "mode") \
Expand All @@ -114,27 +125,35 @@ namespace node {
V(onselect_string, "onselect") \
V(onsignal_string, "onsignal") \
V(onstop_string, "onstop") \
V(output_string, "output") \
V(path_string, "path") \
V(pid_string, "pid") \
V(pipe_string, "pipe") \
V(port_string, "port") \
V(processed_string, "processed") \
V(rdev_string, "rdev") \
V(readable_string, "readable") \
V(rename_string, "rename") \
V(rss_string, "rss") \
V(scavenge_string, "scavenge") \
V(serial_number_string, "serialNumber") \
V(servername_string, "servername") \
V(session_id_string, "sessionId") \
V(should_keep_alive_string, "shouldKeepAlive") \
V(signal_string, "signal") \
V(size_string, "size") \
V(smalloc_p_string, "_smalloc_p") \
V(sni_context_err_string, "Invalid SNI context") \
V(sni_context_string, "sni_context") \
V(stack_string, "stack") \
V(status_code_string, "statusCode") \
V(status_message_string, "statusMessage") \
V(status_string, "status") \
V(stdio_string, "stdio") \
V(subject_string, "subject") \
V(subjectaltname_string, "subjectaltname") \
V(syscall_string, "syscall") \
V(timeout_string, "timeout") \
V(timestamp_string, "timestamp") \
V(tls_ticket_string, "tlsTicket") \
V(total_heap_size_executable_string, "total_heap_size_executable") \
Expand All @@ -150,6 +169,8 @@ namespace node {
V(version_major_string, "versionMajor") \
V(version_minor_string, "versionMinor") \
V(version_string, "version") \
V(windows_verbatim_arguments_string, "windowsVerbatimArguments") \
V(writable_string, "writable") \
V(write_queue_size_string, "writeQueueSize") \

#define ENVIRONMENT_STRONG_PERSISTENT_PROPERTIES(V) \
Expand Down
Loading

0 comments on commit fa4eb47

Please sign in to comment.