首页
学习
活动
专区
圈层
工具
发布

读时mv()
EN

Stack Overflow用户
提问于 2010-05-14 19:47:14
回答 1查看 1.4K关注 0票数 1

在Linux ext3文件系统上,如果mv()在读取文件时在同一个文件(文件描述符)上被调用,会发生什么?这其实是个试题,我只能说:

  1. 用于中断处理的CPU陷阱操作系统
  2. 等等

如果外面的操作系统人员能帮我的忙,我会很感激的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-05-14 20:07:01

Linux重命名手册页:

这就解释了大部分细节。

代码语言:javascript
复制
If one or more processes have the file open when the last link is removed,
the link shall be removed before rename() returns, but the removal of the
file contents shall be postponed until all references to the file are closed. 
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2837135

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档