mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 18:44:17 +00:00
17 lines
449 B
JavaScript
17 lines
449 B
JavaScript
// List of realtime signals with information about them
|
|
export const getRealtimeSignals = () => {
|
|
const length = SIGRTMAX - SIGRTMIN + 1
|
|
return Array.from({ length }, getRealtimeSignal)
|
|
}
|
|
|
|
const getRealtimeSignal = (value, index) => ({
|
|
name: `SIGRT${index + 1}`,
|
|
number: SIGRTMIN + index,
|
|
action: 'terminate',
|
|
description: 'Application-specific signal (realtime)',
|
|
standard: 'posix',
|
|
})
|
|
|
|
const SIGRTMIN = 34
|
|
export const SIGRTMAX = 64
|