diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-09-23 04:17:01 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-09-23 04:17:01 +0000 |
commit | 1537b639c0611c8715b2f3d7564d8f9c13aad2ba (patch) | |
tree | efd7d1a498b8e9344452ba20d309751f441750e4 /src/pty.rs | |
parent | d302e8d278bcd5b10ab7a30a467b5d8e21139ff2 (diff) | |
parent | a7fea44fe38b61a65ebc2d840c4c6c9e1bd8431d (diff) | |
download | nix-1537b639c0611c8715b2f3d7564d8f9c13aad2ba.zip |
Merge #930
930: Add wrapper for linux kernel module loading r=Susurrus a=bachp
- init_module and finit_module to load kernel modules
- delete_module to unload kernel modules
Co-authored-by: Pascal Bach <pascal.bach@nextrem.ch>
Diffstat (limited to 'src/pty.rs')
-rw-r--r-- | src/pty.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -108,8 +108,7 @@ pub fn grantpt(fd: &PtyMaster) -> Result<()> { /// let slave_name = unsafe { ptsname(&master_fd) }?; /// /// // Try to open the slave -/// # #[allow(unused_variables)] -/// let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, Mode::empty())?; +/// let _slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, Mode::empty())?; /// # Ok(()) /// # } /// ``` |