Pelle Windestam Pelle.Windestam@tagmaster.com [nuttx]
2018-02-13 10:56:47 UTC
Hi,
I noticed an error in the tcp_send_unbuffered() function. It is supposed to return a negated errno code which will be set properly by upper level logic in write(), but it sets errno itself and returns -1 which leads to errno information being lost (in my case not being able to determine when write() is interrupted by a signal). I'm attaching a patch which fixes this.
//Pelle
I noticed an error in the tcp_send_unbuffered() function. It is supposed to return a negated errno code which will be set properly by upper level logic in write(), but it sets errno itself and returns -1 which leads to errno information being lost (in my case not being able to determine when write() is interrupted by a signal). I'm attaching a patch which fixes this.
//Pelle