change custom error code to EGCTRYAGAIN, because ETRYAGAIN already
exists in errno.h