资源暂时不可用 ttyS3 [英] Resource temporarily unavailable ttyS3

查看:88
本文介绍了资源暂时不可用 ttyS3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个串行配置为 ttyS3 的嵌入式系统,我正在尝试使用

I have a embedded system with serial configured as ttyS3,I'm trying to start getty using

`/sbin/getty -L ttyS3 115200 vt100 -H HOME -u root -a`

但是在我尝试之后它无法通过登录启动会话

but its failed to start session with login after that I have tried

$ cat /dev/ttyS3
cat: can't open '/dev/ttyS3': Resource temporarily unavailable

但我收到类似/dev/ttyS3"的错误:资源暂时不可用,那么有没有办法找出哪个进程正在使用此资源(/dev/ttyS3)?

but I'm getting error like '/dev/ttyS3': Resource temporarily unavailable,so is there any way to find out which process is using this resource (/dev/ttyS3)?

推荐答案

Use lsof - 它列出了所有打开的文件.为了您的目的,请执行以下操作 -

Use lsof - it lists all the open files. For your purpose do the following -

        lsof /dev/ttyS3

这将显示哪个进程占用了该资源.

this will show which process holds up this resource.

这篇关于资源暂时不可用 ttyS3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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