diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-05 00:36:02 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-05 00:36:02 -0500 |
commit | 21399914b08addbcab41acac1824d5ee53c099fe (patch) | |
tree | fa7eed78fb276d1f0df1cb9300d5c2e95447972f /src/builtins/command.rs | |
parent | d3139886c7d2b5cc79463d32f0b525baa4c27f3c (diff) | |
download | nbsh-21399914b08addbcab41acac1824d5ee53c099fe.tar.gz nbsh-21399914b08addbcab41acac1824d5ee53c099fe.zip |
some safety comments
Diffstat (limited to 'src/builtins/command.rs')
-rw-r--r-- | src/builtins/command.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<F>(&mut self, f: F) where F: 'static + FnMut() -> std::io::Result<()> + Send + Sync, |