File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ static int CreateTempFile(uv_loop_t& loop, std::string& filepath) {
323
323
}
324
324
325
325
static void ExportProfile (HeapProfilerState& state) {
326
- const int64_t timeoutMs = 5000 ;
326
+ const int64_t timeoutMs = 15000 ;
327
327
uv_loop_t loop;
328
328
int r;
329
329
@@ -355,6 +355,14 @@ static void ExportProfile(HeapProfilerState& state) {
355
355
options.file = args[0 ];
356
356
options.args = args.data ();
357
357
options.exit_cb = &OnExit;
358
+ uv_stdio_container_t child_stdio[3 ];
359
+ child_stdio[0 ].flags = UV_IGNORE;
360
+ child_stdio[1 ].flags = UV_INHERIT_FD;
361
+ child_stdio[1 ].data .fd = 2 ;
362
+ child_stdio[2 ].flags = UV_INHERIT_FD;
363
+ child_stdio[2 ].data .fd = 2 ;
364
+ options.stdio = child_stdio;
365
+ options.stdio_count = 3 ;
358
366
uv_process_t child_req;
359
367
uv_timer_t timer;
360
368
timer.data = &child_req;
You can’t perform that action at this time.
0 commit comments