File tree 2 files changed +4
-2
lines changed
library/std/src/sys/unix/process
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ impl Command {
223
223
pub fn get_groups ( & self ) -> Option < & [ gid_t ] > {
224
224
self . groups . as_deref ( )
225
225
}
226
- # [ allow ( dead_code ) ]
226
+
227
227
pub fn get_closures ( & mut self ) -> & mut Vec < Box < dyn FnMut ( ) -> io:: Result < ( ) > + Send + Sync > > {
228
228
& mut self . closures
229
229
}
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ impl Command {
18
18
needs_stdin : bool ,
19
19
) -> io:: Result < ( Process , StdioPipes ) > {
20
20
use crate :: sys:: cvt_r;
21
- // const CLOEXEC_MSG_FOOTER: &'static [u8] = b"NOEX";
22
21
let envp = self . capture_env ( ) ;
23
22
24
23
if self . saw_nul ( ) {
@@ -61,6 +60,9 @@ impl Command {
61
60
t ! ( cvt( libc:: chdir( cwd. as_ptr( ) ) ) ) ;
62
61
}
63
62
63
+ // pre_exec closures are ignored on VxWorks
64
+ let _ = self . get_closures ( ) ;
65
+
64
66
let c_envp = envp
65
67
. as_ref ( )
66
68
. map ( |c| c. as_ptr ( ) )
You can’t perform that action at this time.
0 commit comments