Commit d5b32246 authored by Ben Noordhuis's avatar Ben Noordhuis Committed by Michael Dawson
Browse files

src: backport ignore ENOTCONN on shutdown race

This is a backport of ea37ac04



Original commit message:

  On AIX, OS X and the BSDs, calling shutdown() on one end of a pipe
  when the other end has closed the connection fails with ENOTCONN.

  The sequential/test-child-process-execsync test failed sporadically
  because of a race between the parent and the child where one closed
  its end of the pipe before the other got around to calling shutdown()
  on its end of the pipe.

  Libuv is not the right place to handle that because it can't tell if
  the ENOTCONN error is genuine but io.js can.

  Refs: libuv/libuv#268
  PR-URL: iojs#1214
Reviewed-By: default avatarBert Belder <bertbelder@gmail.com>

Fixes: https://github.com/joyent/node/issues/9444

.

Reviewed-By: default avatarJulien Gilli <julien.gilli@joyent.com>
PR-URL: https://github.com/joyent/node/pull/14480
parent 4e154d6e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment