When writing to a closed pipe on OSX errno is set to EPERM.
When writing to a closed pipe on OSX errno is set to EPERM.

We specifically detect this case, close the channel and return an error.
This CL also silences error messages that where previously printed to the console in this situation.

BUG=12734

Review URL: http://codereview.chromium.org/113913

git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@17004 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser