[LiSA-Devel] Saving / restoring errno

Claudiu Ghioc claudiughioc at gmail.com
Sat Apr 13 21:07:56 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
>
> _______________________________________________
> LiSA-Devel mailing list
> LiSA-Devel at lisa.mindbit.ro
> http://lisa.mindbit.ro/mailman/listinfo/lisa-devel


Hi Radu,

I agree, the saving and restoring should be done in SW_SOCK_CLOSE(),
this is the only case when we need errno to be saved. I will changed
it right away.

Claudiu


More information about the LiSA-Devel mailing list