summaryrefslogtreecommitdiffstats
path: root/XMonad
diff options
context:
space:
mode:
authorSpencer Janssen <spencerjanssen@gmail.com>2009-01-17 04:59:07 +0100
committerSpencer Janssen <spencerjanssen@gmail.com>2009-01-17 04:59:07 +0100
commit940965556c4c7ca0877f8c6bdef5c8dc2a9fca16 (patch)
treef02f6c6084ef865e1a6de320578f2b2d2181dfc8 /XMonad
parent0cc9404993395f06a35328d1d9a6abd2ae224bb7 (diff)
downloadmetatile-940965556c4c7ca0877f8c6bdef5c8dc2a9fca16.tar
metatile-940965556c4c7ca0877f8c6bdef5c8dc2a9fca16.zip
Document spawnPID
Ignore-this: 1641bdcf5055b2ec7b9455265f5b1d52 darcs-hash:20090117035907-25a6b-1bd8e7677c7beff72fb78f74c053adb5f3fcfde3
Diffstat (limited to 'XMonad')
-rw-r--r--XMonad/Core.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/XMonad/Core.hs b/XMonad/Core.hs
index eedeed4..950a936 100644
--- a/XMonad/Core.hs
+++ b/XMonad/Core.hs
@@ -354,6 +354,7 @@ catchIO f = io (f `catch` \e -> hPrint stderr e >> hFlush stderr)
spawn :: MonadIO m => String -> m ()
spawn x = spawnPID x >> return ()
+-- | Like 'spawn', but returns the 'ProcessID' of the launched application
spawnPID :: MonadIO m => String -> m ProcessID
spawnPID x = io $ forkProcess $ executeFile "/bin/sh" False ["-c", x] Nothing