summaryrefslogtreecommitdiffstats
path: root/src/builtins/command.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-05 00:36:02 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-05 00:36:02 -0500
commit21399914b08addbcab41acac1824d5ee53c099fe (patch)
treefa7eed78fb276d1f0df1cb9300d5c2e95447972f /src/builtins/command.rs
parentd3139886c7d2b5cc79463d32f0b525baa4c27f3c (diff)
downloadnbsh-21399914b08addbcab41acac1824d5ee53c099fe.tar.gz
nbsh-21399914b08addbcab41acac1824d5ee53c099fe.zip
some safety comments
Diffstat (limited to 'src/builtins/command.rs')
-rw-r--r--src/builtins/command.rs2
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,