diff options
author | Alan Somers <asomers@gmail.com> | 2021-05-01 15:20:04 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 15:20:04 -0600 |
commit | b535457f225a928ec4243addd6c25c500dc99578 (patch) | |
tree | 1e26a1b16c2fd0755ec75dd4398b9e6f5c0c9eef /src/unistd.rs | |
parent | bb875f26f2f1e71d32822f65849786ca7101e992 (diff) | |
parent | 468dc73cb784cca13001d5a1516dbe708165e054 (diff) | |
download | nix-b535457f225a928ec4243addd6c25c500dc99578.zip |
Merge pull request #1431 from asomers/alarm_doc_test2
Hopefully improve unistd::alarm::set's doc test's reliability
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index 2061341a..7680dbd9 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -1668,7 +1668,7 @@ pub mod alarm { //! extern fn signal_handler(_: nix::libc::c_int) { } //! let sa = SigAction::new( //! SigHandler::Handler(signal_handler), - //! SaFlags::empty(), + //! SaFlags::SA_RESTART, //! SigSet::empty() //! ); //! unsafe { |