systemd-api-0.1.0.1: systemd bindings
Safe HaskellSafe-Inferred
LanguageHaskell2010

Linux.Systemd

Synopsis

Documentation

listenFds Source #

Arguments

:: CInt

unset environment (non-zero unsets LISTEN_FDS, LISTEN_PID, and LISTEN_FDNAMES)

-> IO (Either Errno CInt) 

Check for file descriptors passed by the system manager. Returns the number of received file descriptors. If no file descriptors have been received, zero is returned.

isSocket Source #

Arguments

:: Fd

File descriptor

-> Family

Socket family

-> Type

Socket type

-> CInt

Positive: require listen mode. Zero: require non-listening mode.

-> IO (Either Errno CInt)