- Electron version: v1.2.3
- Operating system: Deepin 15.2 (Debian jessie)

After I relaunched My app using the relaunch api(http://electron.atom.io/docs/api/app/#apprelaunchoptions), every `console.log(...)` that I used would throw `EBADF: bad file descriptor, write` error like this:

```
Uncaught Exception:
Error: EBADF: bad file descriptor, write
    at Error (native)
    at Object.fs.writeSync (fs.js:780:20)
    at SyncWriteStream.write (fs.js:1979:6)
    at Console.log (console.js:43:16)
    at Object.exec (/media/z/data/home/z/Projects/Electron/ELaunch/app/plugins/app/linux/index.js:130:13)
    at Object.exec (/media/z/data/home/z/Projects/Electron/ELaunch/app/plugins/index.js:51:12)
    at EventEmitter.ipcMain.on (/media/z/data/home/z/Projects/Electron/ELaunch/app/index.js:35:12)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)
    at EventEmitter.<anonymous> (/media/z/data/home/z/Projects/Electron/ELaunch/node_modules/electron-prebuilt/dist/resources/electron.asar/browser/api/web-contents.js:156:13)
```

I also see #3482 ,
is there any way to fix it?

atom/browser/relauncher_linux.cc
#include "atom/browser/relauncher.h"
#include <signal.h>
#include <sys/prctl.h>
#include <sys/signalfd.h>
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "base/process/launch.h"
namespace relauncher {
namespace internal {
void RelauncherSynchronizeWithParent() {