From d100f1a335b4366b99f49c6594c63a5e3a40c2bd Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Sun, 27 Dec 2009 01:35:01 +0100 Subject: Fix the createSession bug in spawnPipe Ignore-this: 2d7f8746eb657036d39f3b9aac22b3c9 Both the new XMonad.Core.xfork function and spawnPipe call createSession, calling this function twice results in an error. darcs-hash:20091227003501-25a6b-5a23d578f0a0f368e28041b7be7defb532dd9ef3.gz --- XMonad/Util/Run.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'XMonad') diff --git a/XMonad/Util/Run.hs b/XMonad/Util/Run.hs index fe1949c..c884818 100644 --- a/XMonad/Util/Run.hs +++ b/XMonad/Util/Run.hs @@ -32,7 +32,7 @@ module XMonad.Util.Run ( ) where import System.Posix.IO -import System.Posix.Process (executeFile, createSession) +import System.Posix.Process (executeFile) import Control.Concurrent (threadDelay) import Control.Exception (try) -- use OldException with base 4 import System.IO @@ -136,8 +136,6 @@ spawnPipe x = io $ do h <- fdToHandle wr hSetBuffering h LineBuffering xfork $ do - createSession - uninstallSignalHandlers dupTo rd stdInput executeFile "/bin/sh" False ["-c", x] Nothing closeFd rd -- cgit v1.2.3