summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Presence/ConsoleWriter.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Presence/ConsoleWriter.hs b/Presence/ConsoleWriter.hs
index aca4bf98..9fce6701 100644
--- a/Presence/ConsoleWriter.hs
+++ b/Presence/ConsoleWriter.hs
@@ -254,8 +254,9 @@ writeAllPty cw msg = do
254 us <- atomically $ readTVar (csUtmp cw) 254 us <- atomically $ readTVar (csUtmp cw)
255 let ptys = Map.filterWithKey ispty us 255 let ptys = Map.filterWithKey ispty us
256 ispty k _ = "pts/" `Text.isPrefixOf` k 256 ispty k _ = "pts/" `Text.isPrefixOf` k
257 && Text.all isDigit (Text.drop 4 k)
257 bs <- forM (Map.toList ptys) $ \(tty,utmp) -> do 258 bs <- forM (Map.toList ptys) $ \(tty,utmp) -> do
258 deliverTerminalMessage cw tty utmp msg 259 deliverTerminalMessage cw ("/dev/" <> tty) utmp msg
259 return $ or bs 260 return $ or bs
260 261
261resource :: UtmpRecord -> Text 262resource :: UtmpRecord -> Text