@@ -196,7 +196,7 @@ sysdecode_vmprot(FILE *fp, int type, int *rem)
196
196
}
197
197
198
198
static struct name_table sockflags [] = {
199
- X (SOCK_CLOEXEC ) X (SOCK_NONBLOCK ) XEND
199
+ X (SOCK_CLOEXEC ) X (SOCK_CLOFORK ) X ( SOCK_NONBLOCK ) XEND
200
200
};
201
201
202
202
bool
@@ -206,16 +206,17 @@ sysdecode_socket_type(FILE *fp, int type, int *rem)
206
206
uintmax_t val ;
207
207
bool printed ;
208
208
209
- str = lookup_value (socktype , type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK ));
209
+ str = lookup_value (socktype ,
210
+ type & ~(SOCK_CLOEXEC | SOCK_CLOFORK | SOCK_NONBLOCK ));
210
211
if (str != NULL ) {
211
212
fputs (str , fp );
212
213
* rem = 0 ;
213
214
printed = true;
214
215
} else {
215
- * rem = type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK );
216
+ * rem = type & ~(SOCK_CLOEXEC | SOCK_CLOFORK | SOCK_NONBLOCK );
216
217
printed = false;
217
218
}
218
- val = type & (SOCK_CLOEXEC | SOCK_NONBLOCK );
219
+ val = type & (SOCK_CLOEXEC | SOCK_CLOFORK | SOCK_NONBLOCK );
219
220
print_mask_part (fp , sockflags , & val , & printed );
220
221
return (printed );
221
222
}
@@ -556,7 +557,7 @@ sysdecode_nfssvc_flags(int flags)
556
557
}
557
558
558
559
static struct name_table pipe2flags [] = {
559
- X (O_CLOEXEC ) X (O_NONBLOCK ) XEND
560
+ X (O_CLOEXEC ) X (O_CLOFORK ) X ( O_NONBLOCK ) XEND
560
561
};
561
562
562
563
bool
@@ -866,7 +867,7 @@ sysdecode_fcntl_cmd(int cmd)
866
867
}
867
868
868
869
static struct name_table fcntl_fd_arg [] = {
869
- X (FD_CLOEXEC ) X (0 ) XEND
870
+ X (FD_CLOEXEC ) X (FD_CLOFORK ) X ( 0 ) XEND
870
871
};
871
872
872
873
bool
0 commit comments