@@ -71,7 +71,7 @@ CAMLprim value eio_unix_fork_execve(value v_unit) {
71
71
72
72
static void action_fchdir (int errors , value v_config ) {
73
73
#ifdef _WIN32
74
- uerror ( " Unsupported operation on windows", Nothing );
74
+ eio_unix_fork_error ( errors , "action_fchdir" , " Unsupported operation on windows" );
75
75
#else
76
76
value v_fd = Field (v_config , 1 );
77
77
int r ;
@@ -103,7 +103,7 @@ CAMLprim value eio_unix_fork_chdir(value v_unit) {
103
103
104
104
static void set_blocking (int errors , int fd , int blocking ) {
105
105
#ifdef _WIN32
106
- uerror ( " Unsupported operation on windows", Nothing );
106
+ eio_unix_fork_error ( errors , "set_blocking" , " Unsupported operation on windows" );
107
107
#else
108
108
int r = fcntl (fd , F_GETFL , 0 );
109
109
if (r != -1 ) {
@@ -123,7 +123,7 @@ static void set_blocking(int errors, int fd, int blocking) {
123
123
124
124
static void set_cloexec (int errors , int fd , int cloexec ) {
125
125
#ifdef _WIN32
126
- uerror ( " Unsupported operation on windows", Nothing );
126
+ eio_unix_fork_error ( errors , "set_cloexec" , " Unsupported operation on windows" );
127
127
#else
128
128
int r = fcntl (fd , F_GETFD , 0 );
129
129
if (r != -1 ) {
0 commit comments