On Sunday 01 November 2015 17:20:57 KO Myung-Hun wrote: > Updated. You seem to assume that errno is reset to 0 on succesful system call. Either this is incorrect, or it is a bug in your libc. -- Rémi Denis-Courmont http://www.remlab.net/