Linux的错误号23和Linux的错误号24的区别 [英] Difference between linux errno 23 and linux errno 24

查看:1144
本文介绍了Linux的错误号23和Linux的错误号24的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)

是什么在 errno.h中这两个Linux的错误之间的区别? 23和24

What is the difference between these 2 linux errors in errno.h? 23 and 24

我试过2个不同的地点,但无法理解这两者之间的区别。

I tried 2 different sites but can't understand difference between the two.

[EMFILE]
Too many open files.
[ENFILE]
Too many files open in system.


# define ENFILE      23  /* File table overflow */
# define EMFILE      24  /* Too many open files */


2)

另外,
我得到错误号24和插座在通话时第九百七十四失败。 ( AF_INET UDP数据报套接字)

Also, I am getting errno 24 and socket call failing at 974th time. (AF_INET UDP datagram socket)

当我做了执行cat / proc / SYS / FS /文件-MAX 我看到的334076值
-n的ulimit显示1024

When I did a cat /proc/sys/fs/file-max i am seeing value of 334076 ulimit -n showing 1024

任何想法可以做些什么来增加限制?

Any idea what can be done to increase limit?

真的AP preciate任何帮助。

Really appreciate any help.

推荐答案

有关1)两个错误codeS大约有太多打开的文件的情况。 EMFILE是太多的文件在你的进程中打开。 ENFILE太多的文件在整个系统中打开。

For 1) Both error codes are about the situation with too many opened files. EMFILE is too many files opened in your process. ENFILE is too many files opened in the entire system.

这篇关于Linux的错误号23和Linux的错误号24的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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