File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77- tar.gz release archive.
88
9+ ### Changed
10+
11+ - Change working directory to ` / ` (or ` C:\ ` on Windows) to avoid blocking
12+ removal of the directory the server was started from.
13+
914## [ 0.4] - 2026-03-15
1015
1116### Changed
Original file line number Diff line number Diff line change 99
1010#include < uv.h>
1111
12+ #ifdef _WIN32
13+ # include < direct.h>
14+ #else
15+ # include < unistd.h>
16+ #endif
17+
1218#include < cstdlib>
1319#include < iostream>
1420
@@ -57,6 +63,16 @@ int main()
5763 return 1 ;
5864 }
5965
66+ #ifdef _WIN32
67+ if (_chdir (" C:\\ " ) != 0 ) {
68+ LOG (" Failed to chdir to C:\\ " );
69+ }
70+ #else
71+ if (chdir (" /" ) != 0 ) {
72+ LOG (" Failed to chdir to /" );
73+ }
74+ #endif
75+
6076 int result = uv_run (loop, UV_RUN_DEFAULT);
6177 LOG (" Event loop exited with code " + std::to_string (result));
6278
You can’t perform that action at this time.
0 commit comments