summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-05-01 15:20:04 -0600
committerGitHub <noreply@github.com>2021-05-01 15:20:04 -0600
commitb535457f225a928ec4243addd6c25c500dc99578 (patch)
tree1e26a1b16c2fd0755ec75dd4398b9e6f5c0c9eef /src/unistd.rs
parentbb875f26f2f1e71d32822f65849786ca7101e992 (diff)
parent468dc73cb784cca13001d5a1516dbe708165e054 (diff)
downloadnix-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.rs2
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 {