Why does epoll show Bad file descriptor?
Why does epoll show Bad file descriptor?
Wrong order:
Close ();
Epoll_ctl (epollfd, EPOLL_CTL_DEL, sockfd, & ev );
Correct order:
Epoll_ctl (epollfd, EPOLL_CTL_DEL, sockfd, & ev );
Close ();
When you
I encountered this problem today. Previously I found that the socket descriptor of the I/O event was closed before epoll_ctl () was processed.
If (epoll_ctl (epollfd, epoll_ctl_del, ev-> FD, & EPV) Fprintf (stderr, "event del failed [FD = % d],
According to the official website installation method:
The following error may occur under the Ubuntu system:
Couldn ' t remove FS lock errno:9 Bad file descriptor
The file owner needs to be modified at this time
$ sudo mkdir-p/data/db/
$ sudo
One case of Hard Disk logical bad track repair and one case of Hard Disk LogicThe driver detects that the Device \ Harddisk0 \ DR0 will fail. Back up your data and replace the hard drive. Faults may occur quickly.This is recorded by the event viewer.
Today to see very fast, suddenly the second chapter read, but the second chapter also does not see carefully, this chapter in fact in the program design is still very important, because the content of this chapter determines the portability of the
Article Title: Detailed description of the new file system change mechanism in Linux2.6 kernel. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research,
Inotify, a new file system change in Linux 2.6 kernel, is a file system change notification mechanism.
I. Introduction
As we all know, Linux desktop systems are much less satisfactory than Mac or windows. To improve this situation, the open-source
This article directory:1.1 Document Descriptor (file DESCRIPTION,FD)1.2 Copying of file descriptors1.3 Redirect Order is important: ">file 2>&1" and "2>&1 >file"1.4 Changing the redirect target for the current shell environment1.5 Closing file
Article reproduced from: http://www.isongzi.com/2009/03/26/socket-bad-address/
I don't understand why I have bad address errors when I read the socket buffer. The send-side write return value is normal, and the receiving end read returns 0 and
Inotify-File System notification mechanism in the kernel, inotify-Kernel
Reprinted: http://www.ibm.com/developerworks/cn/linux/l-inotifynew/index.htmlI. Introduction
As we all know, Linux desktop systems are much less satisfactory than MAC or
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.