From 21399914b08addbcab41acac1824d5ee53c099fe Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 5 Jan 2022 00:36:02 -0500 Subject: some safety comments --- src/builtins/command.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/builtins/command.rs') diff --git a/src/builtins/command.rs b/src/builtins/command.rs index 2ea7f18..f3ec598 100644 --- a/src/builtins/command.rs +++ b/src/builtins/command.rs @@ -32,6 +32,8 @@ impl Command { self.io.set_stderr(fh); } + // Safety: see pre_exec in async_std::os::unix::process::CommandExt (this + // is just a wrapper) pub unsafe fn pre_exec(&mut self, f: F) where F: 'static + FnMut() -> std::io::Result<()> + Send + Sync, -- cgit v1.2.3-54-g00ecf