| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -275,8 +275,10 @@ function nextdir() { | |||
| 275 | 275 | ||
| 276 | 276 | // It throws an error if attempt is made to copy socket. | |
| 277 | 277 | if (!isWindows) { | |
| 278 | + const src = nextdir(); | ||
| 279 | + mkdirSync(src); | ||
| 278 | 280 | const dest = nextdir(); | |
| 279 | - const sock = `${process.pid}.sock`; | ||
| 281 | + const sock = join(src, `${process.pid}.sock`); | ||
| 280 | 282 | const server = net.createServer(); | |
| 281 | 283 | server.listen(sock); | |
| 282 | 284 | assert.throws( | |
@@ -596,8 +598,10 @@ if (!isWindows) { | |||
| 596 | 598 | ||
| 597 | 599 | // It returns an error if attempt is made to copy socket. | |
| 598 | 600 | if (!isWindows) { | |
| 601 | + const src = nextdir(); | ||
| 602 | + mkdirSync(src); | ||
| 599 | 603 | const dest = nextdir(); | |
| 600 | - const sock = `${process.pid}.sock`; | ||
| 604 | + const sock = join(src, `${process.pid}.sock`); | ||
| 601 | 605 | const server = net.createServer(); | |
| 602 | 606 | server.listen(sock); | |
| 603 | 607 | cp(sock, dest, mustCall((err) => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments