Skip to content

Commit

Permalink
Merge pull request #607 from elfenpiff/iox2-605-remove-sigpoll
Browse files Browse the repository at this point in the history
[#605] remove sigpoll
  • Loading branch information
elfenpiff authored Jan 26, 2025
2 parents 7593350 + b650ce3 commit d900b9c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions doc/release-notes/iceoryx2-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
* Undefined behavior due to ZeroCopyConnection removal when stale resources
are cleaned up
[#596](https://github.com/eclipse-iceoryx/iceoryx2/issues/596)
* Remove `SIGPOLL` that lead to compile issues on older glibc versions.
Fixe issue where fatal signals are generated with non-fatal values.
[#605](https://github.com/eclipse-iceoryx/iceoryx2/issues/605)

### Refactoring

Expand Down
3 changes: 1 addition & 2 deletions iceoryx2-bb/posix/src/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ macro_rules! define_signals {
#[derive(Debug, Clone, Copy, Eq, Hash, PartialEq, Sequence)]
#[repr(i32)]
pub enum FatalFetchableSignal {
$($fatal_entry = $fatal_nn::$value),*,
$($fatal_entry = $fatal_nn::$fatal_value),*,
}

enum_gen! {
Expand Down Expand Up @@ -193,7 +193,6 @@ define_signals! {
BackgroundProcessReadAttempt = posix::SIGTTIN,
BackgroundProcessWriteAttempt = posix::SIGTTOU,
UserDefined1 = posix::SIGUSR1,
PollableEvent = posix::SIGPOLL,
ProfilingTimerExpired = posix::SIGPROF,
UrgentDataAvailableAtSocket = posix::SIGURG,
VirtualTimerExpired = posix::SIGVTALRM
Expand Down
1 change: 0 additions & 1 deletion iceoryx2-pal/posix/src/freebsd/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ pub const PTHREAD_BARRIER_SERIAL_THREAD: int = crate::internal::PTHREAD_BARRIER_
pub const PTHREAD_EXPLICIT_SCHED: int = crate::internal::PTHREAD_EXPLICIT_SCHED as _;
pub const PTHREAD_INHERIT_SCHED: int = crate::internal::PTHREAD_INHERIT_SCHED as _;

pub const SIGPOLL: int = crate::internal::SIGIO as _;
pub const MAX_SIGNAL_VALUE: usize = 34;

pub const SO_PASSCRED: int = crate::internal::LOCAL_PEERCRED as _;
Expand Down
1 change: 0 additions & 1 deletion iceoryx2-pal/posix/src/linux/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ pub const PTHREAD_BARRIER_SERIAL_THREAD: int = crate::internal::PTHREAD_BARRIER_
pub const PTHREAD_EXPLICIT_SCHED: int = crate::internal::PTHREAD_EXPLICIT_SCHED as _;
pub const PTHREAD_INHERIT_SCHED: int = crate::internal::PTHREAD_INHERIT_SCHED as _;

pub const SIGPOLL: int = crate::internal::SIGPOLL as _;
pub const MAX_SIGNAL_VALUE: usize = 32;

pub const SO_PASSCRED: int = crate::internal::SO_PASSCRED as _;
Expand Down
1 change: 0 additions & 1 deletion iceoryx2-pal/posix/src/macos/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ pub const PTHREAD_BARRIER_SERIAL_THREAD: int = int::MAX;
pub const PTHREAD_EXPLICIT_SCHED: int = crate::internal::PTHREAD_EXPLICIT_SCHED as _;
pub const PTHREAD_INHERIT_SCHED: int = crate::internal::PTHREAD_INHERIT_SCHED as _;

pub const SIGPOLL: int = crate::internal::SIGIO as _;
pub const MAX_SIGNAL_VALUE: usize = 34;

pub const SO_PASSCRED: int = crate::internal::LOCAL_PEERCRED as _;
Expand Down
1 change: 0 additions & 1 deletion iceoryx2-pal/posix/src/windows/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ pub const SIGVTALRM: int = 24;
pub const SIGXCPU: int = 25;
pub const SIGXFSZ: int = 26;
pub const SIG_ERR: sighandler_t = sighandler_t::MAX;
pub const SIGPOLL: int = 27;
pub const SIG_DFL: int = 0;
pub const SIG_IGN: int = 1;
pub const SA_RESTART: int = 1;
Expand Down

0 comments on commit d900b9c

Please sign in to comment.