LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-08-2007, 12:15 PM   #1
hsugawar
LQ Newbie
 
Registered: Aug 2006
Posts: 17

Rep: Reputation: 0
ERESTARTNOHAND - what to do?


2.6 kernel's include/linux/errno.h defines several error codes that "should never be seen by user programs." But, for example, select(2) apparently returns ERESTARTNOHAND (514), one of the listed error codes, which appears identical to or very similar to EINTR.

What is an application supposed to do when it encounters this error code? It's a piece of cake to check errno against "514," but ERESTARTNOHAND is not defined in the user space (/usr/include/errno.h). Does the wording "should not be seen by user _programs_" mean the error codes should be absorbed by the library layer so that they are not see by "programs"?

As to the particular error code ERESTARTNOHAND, the comments in fs/select.c are very vague and do not make sense. Should I patch the kernel to convert ERESTARTNOHAND to EINTR? (I have seen several local patches that do so.)

My client is in trouble with this and I am assigned to solve it.

Thanks,
hiro
 
  


Reply

Tags
select


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration