Skip to content

Instantly share code, notes, and snippets.

@cjhanks
Created July 15, 2012 23:54
Show Gist options
  • Save cjhanks/3119269 to your computer and use it in GitHub Desktop.
Save cjhanks/3119269 to your computer and use it in GitHub Desktop.
Execution order matters.
if ((write_len = write(out_pipe, buffer,
read_len = read(sock, buffer, BUF_SIZ)))
!= read_len)
fprintf(stderr, "%s\n", "Error!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment