From 940965556c4c7ca0877f8c6bdef5c8dc2a9fca16 Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Sat, 17 Jan 2009 04:59:07 +0100 Subject: Document spawnPID Ignore-this: 1641bdcf5055b2ec7b9455265f5b1d52 darcs-hash:20090117035907-25a6b-1bd8e7677c7beff72fb78f74c053adb5f3fcfde3 --- XMonad/Core.hs | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3