summaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 0330733..95aa83b 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -232,10 +232,10 @@ spawnOn target pname killWith cmd = do
_ -> outProc OutputChildStderr process line
let net = either id nodeNetwork target
- asks (teGDB . fst) >>= maybe (return Nothing) (liftIO . tryReadMVar) >>= liftIO . \case
- Just gdb -> getPid handle >>= \case
+ asks (teGDB . fst) >>= maybe (return Nothing) (liftIO . tryReadMVar) >>= \case
+ Just gdb -> liftIO (getPid handle) >>= \case
Just pid -> do
- ps <- readMVar (netProcesses net)
+ ps <- liftIO $ readMVar (netProcesses net)
addInferior gdb (length ps) pid
Nothing -> return ()
Nothing -> return ()