Skip to content

Instantly share code, notes, and snippets.

@felixge
Created October 1, 2011 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixge/21981287f4f7315b1633 to your computer and use it in GitHub Desktop.
Save felixge/21981287f4f7315b1633 to your computer and use it in GitHub Desktop.
typedef struct uv_spawn_sync_t{
const char* file; /* Path to program to execute. */
/*
* Command line arguments. args[0] should be the path to the program.
*/
char** args;
int64_t timeout;
int combine;
char *stdin_buf;
int stdin_written;
int stdin_size;
char *stdout_buf;
int stdout_read;
int stdout_size;
char *stderr_buf;
int stderr_size;
int stderr_read;
int pid;
int exit_timeout;
int exit_code;
int exit_signal;
} uv_spawn_sync_t;
int uv_spawn_sync(uv_loop_t* loop, uv_spawn_sync_t* spawn_sync);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment