mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
6ddf590ed1
PR-URL: https://github.com/nodejs/node/pull/52164 Fixes: https://github.com/nodejs/node/issues/52159 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
15 lines
409 B
JavaScript
15 lines
409 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const fs = require('fs');
|
|
const net = require('net');
|
|
|
|
const tmpdir = require('../common/tmpdir');
|
|
tmpdir.refresh();
|
|
|
|
const server = net.createServer().listen(common.PIPE, common.mustCall(() => {
|
|
// The process should not crash
|
|
// See https://github.com/nodejs/node/issues/52159
|
|
fs.readdirSync(tmpdir.path, { recursive: true });
|
|
server.close();
|
|
}));
|