linux 网络错误代码,Linux上错误代码24的含义是什么?

On Unix, the return value is the exit

status of the process encoded in the

format specified for wait(). Note that

POSIX does not specify the meaning of

the return value of the C system()

function, so the return value of the

Python function is system-dependent.

幸运的是,用于分析返回状态的C宏在os模块中可用(启动here)

我在amd64/Linux上运行了这些:>>> import os

>>> os.WIFEXITED(24) #Return True if the process exited using the exit(2) system call

False

>>> os.WIFSIGNALED(24) #Return True if the process exited due to a signal

True

>>> os.WTERMSIG(24) #Return the signal which caused the process to exit

24

根据http://linux.die.net/man/7/signal,我认为信号24可能是SIGTSTP(有人通过按CTRL+Z停止了进程)。你在哪个平台/架构上运行?

(接下来,我建议您使用subprocess模块,这样您就可以捕获stdout/stderror)

更新

有人发布了它,然后它就消失了,但是信号24很可能是SIGXCPU(超过了CPU时间限制)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值