Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: patch for 2.1.90 net/core/iovec et al | Date | 25 Mar 1998 00:34:40 GMT |
| |
Followup to: <m0yHZeI-000aQ2C@the-village.bc.nu> By author: alan@lxorguk.ukuu.org.uk (Alan Cox) In newsgroup: linux.dev.kernel > > 2.0.x preserves the read position when you get an EFAULT. Nothing I can find > in the holy manual of posix says what happens if you get an EFAULT on a tcp > operation, so I think we can do what we like. >
In fact, POSIX doesn't distinguish between system calls and library functions, so according to POSIX it is perfectly valid to throw SIGSEGV instead of return EFAULT. Personally, I think there should be a kernel option to turn EFAULT into SIGSEGV, because that's really what it is -- a segfault where the access happens to be from kernel space.
-hpa -- PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74 See http://www.zytor.com/~hpa/ for web page and full PGP public key I am Bahá'í -- ask me about it or see http://www.bahai.org/ "To love another person is to see the face of God." -- Les Misérables
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |