什么产生“文本文件繁忙"?Unix 中的消息? [英] What generates the "text file busy" message in Unix?

查看:26
本文介绍了什么产生“文本文件繁忙"?Unix 中的消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么操作会产生错误text file busy"?我无法准确说出.

What operation generates the error "text file busy"? I am unable to tell exactly.

我认为这与我正在创建一个临时 python 脚本(使用 tempfile)并从中使用 execl 的事实有关,但我认为 execl 更改了正在运行的文件.

I think it is related to the fact that I'm creating a temporary python script (using tempfile) and using execl from it, but I think that execl changes the file being run.

推荐答案

此错误意味着您正在尝试修改正在执行的可执行文件.文本"这里指的是被修改的文件是正在运行的程序的文本段.使用 lsof 检查其他进程正在使用它.如果需要,您可以使用 kill 命令将其杀死.

This error means you are trying to modify an executable while it is executing. The "Text" here refers to the fact that the file being modified is the text segment for a running program. Use lsof to check what other processes are using it. You can use kill command to kill it if needed.

这篇关于什么产生“文本文件繁忙"?Unix 中的消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆