Newsgroups: fa.linux.kernel
From: torva...@transmeta.com (Linus Torvalds)
Date: 2000/08/28
Subject: Re: [PATCH] thread wakeup fix for 2.4.0-test7
In article <200008271925.XAA18...@ms2.inr.ac.ru>,
Sorry, Alexey, but you're just wrong. The behaviour you seem to advocate is stupid. End of story. >Actually, Linus seems to forget about his own idea Bzzt. Wrong answer. >of returning valid error from close(). Think, how it is possible >to return valid error, when fput() is used to close file. My claim is that a user program that does a close() on a file that is in I'm basically saying: if you want reliable behaviour, you should make EXACTLY because you lose the error information, if for no other reason. Imagine that another thread is doing a write() on the fd at the same You'll lose the errors from the operation, for example. Tough. I'm not And I'm right. I'm always right, but in this case I'm just a bit more Just don't close a file descriptor while it is in use. It's that simple. (I'm also claiming that Linux will give the most reasonable possible Linus You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||