# Functions
CanGetProcessLimits returns a boolean to signify if it can return limits, and a warning message if it cannot.
GetProcessLimits returns the known process limits.
NewInterruptChannel will return an interrupt channel useful with multiple listeners.
NewInterruptError creates a new InterruptError.
NewInterruptOptions creates InterruptOptions with sane defaults.
RaiseProcessNoFileToNROpen first determines the NROpen limit by reading the corresponding proc sys file and then if the hard or soft limits are below this number, the limits are raised using a call to setrlimit.
WaitForInterrupt will wait for an interrupt to occur and return when done.
WatchForInterrupt watches for interrupts in a non-blocking fashion and closes the interrupted channel when an interrupt is found.
WriteFileSync calls fsync() in addition to writing a file to disk.
# Variables
ErrInterrupted is an error indicating that the interrupted channel was closed, meaning an interrupt was received on the main interrupt channel.
# Structs
InterruptError is an error representing an interrupt.
InterruptOptions are options to use when waiting for an interrupt.
ProcessLimits captures the different process limits.
RaiseProcessNoFileToNROpenResult captures the result of trying to raise the process num files open limit to the nr_open system value.
# Interfaces
File is the interface implemented by *os.File.