We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94eacdf commit 626c867Copy full SHA for 626c867
jscomp/stubs/ext_basic_hash_stubs.c
@@ -159,14 +159,17 @@ CAMLprim value caml_stale_file(value path)
159
{
160
CAMLparam1(path);
161
struct timeval tv[2];
162
- char * p = caml_stat_strdup(String_val(path));
+ char * p = caml_stat_strdup_to_os(String_val(path));
163
+ // unicode friendly
164
tv[0].tv_sec = 0.0;
165
tv[0].tv_usec = 0.0;
166
tv[1].tv_sec = 0.0;
167
tv[1].tv_usec = 0.0;
- caml_enter_blocking_section();
168
+ // caml_enter_blocking_section();
169
+ // not needed for single thread
170
utimes(p, tv);
- caml_leave_blocking_section();
171
+ // caml_leave_blocking_section();
172
173
caml_stat_free(p);
174
// TODO: error checking
175
CAMLreturn(Val_unit);
0 commit comments