xmonad-contrib-0.18.0.9: Community-maintained extensions for xmonad
Copyright(c) 2022 Tomáš Janoušek <tomi@nomi.cz>
LicenseBSD3
MaintainerTomáš Janoušek <tomi@nomi.cz>
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Util.Process

Description

This module should not be directly used by users, it's just common code for other modules.

Synopsis

Documentation

getPPIDOf :: ProcessID -> IO (Maybe ProcessID) Source #

Get the parent process id (PPID) of a given process.

getPPIDChain :: ProcessID -> IO [ProcessID] Source #

Get the chain of parent processes of a given pid. Starts with the given pid and continues up until the parent of all.