| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 146cba1 commit 644bfe1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,9 @@ function kill(child) { | |||
| 44 | 44 | try { | |
| 45 | 45 | process.kill(-child.pid); // Kill process group. | |
| 46 | 46 | } catch (e) { | |
| 47 | - assert.strictEqual(e.code, 'ESRCH'); // Already gone. | ||
| 47 | + // Generally ESRCH is returned when the process group is already gone. On | ||
| 48 | + // some platforms such as OS X it may be EPERM though. | ||
| 49 | + assert.ok((e.code === 'EPERM') || (e.code === 'ESRCH')); | ||
| 48 | 50 | } | |
| 49 | 51 | } | |
| 50 | 52 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments