[LiSA-Devel] Saving / restoring errno

Radu Rendec radu.rendec at mindbit.ro
Sat Apr 13 20:57:40 EEST 2013


Hello,

I believe saving and restoring errno should happen inside SW_SOCK_CLOSE(),
because we actually never care if the close() call inside it fails.

In most of the functions, errno is not changed by anything else after the
lisa ioctl() is made, so we could avoid saving and restoring errno in most
of the functions if SW_SOCK_CLOSE() is changed as described above.

What do you think?

Radu



More information about the LiSA-Devel mailing list