We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed5bb6 commit a5e0b72Copy full SHA for a5e0b72
src/sys/signalfd.rs
@@ -34,7 +34,7 @@ libc_bitflags!{
34
}
35
36
pub const SIGNALFD_NEW: RawFd = -1;
37
-pub const SIGNALFD_SIGINFO_SIZE: usize = 128;
+pub const SIGNALFD_SIGINFO_SIZE: usize = mem::size_of::<libc::signalfd_siginfo>();
38
39
/// Creates a new file descriptor for reading signals.
40
///
@@ -144,14 +144,6 @@ impl Iterator for SignalFd {
144
#[cfg(test)]
145
mod tests {
146
use super::*;
147
- use std::mem;
148
- use libc;
149
-
150
151
- #[test]
152
- fn check_siginfo_size() {
153
- assert_eq!(mem::size_of::<libc::signalfd_siginfo>(), SIGNALFD_SIGINFO_SIZE);
154
- }
155
156
#[test]
157
fn create_signalfd() {
0 commit comments