Oops, don't forget scoped_gc_epoch

上级 8989a18b
...@@ -172,6 +172,8 @@ sys_unlink(const char *path) ...@@ -172,6 +172,8 @@ sys_unlink(const char *path)
if(argcheckstr(path) < 0) if(argcheckstr(path) < 0)
return -1; return -1;
scoped_gc_epoch e;
if((dp = __nameiparent(myproc()->cwd, path, name, &haveref)) == 0) if((dp = __nameiparent(myproc()->cwd, path, name, &haveref)) == 0)
return -1; return -1;
if(dp->type != T_DIR) if(dp->type != T_DIR)
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论