diff options
Diffstat (limited to 'Presence/LocalPeerCred.hs')
-rw-r--r-- | Presence/LocalPeerCred.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Presence/LocalPeerCred.hs b/Presence/LocalPeerCred.hs index 9054f180..f68557e8 100644 --- a/Presence/LocalPeerCred.hs +++ b/Presence/LocalPeerCred.hs | |||
@@ -126,7 +126,7 @@ identifyTTY :: | |||
126 | identifyTTY tty_pids uid inode = do | 126 | identifyTTY tty_pids uid inode = do |
127 | pid <- scanProc (show uid) (L.unpack inode) | 127 | pid <- scanProc (show uid) (L.unpack inode) |
128 | -- putStrLn $ "scanProc --> "++show pid | 128 | -- putStrLn $ "scanProc --> "++show pid |
129 | flip (maybe (return (Nothing,Nothing))) pid $ \(pid,ttydev) -> do | 129 | fromMaybe (return (Nothing,Nothing)) $ pid <&> \(pid,ttydev) -> do |
130 | tty <- ttyOrDisplay pid ttydev | 130 | tty <- ttyOrDisplay pid ttydev |
131 | -- putStrLn $ "users = " ++ show tty_pids | 131 | -- putStrLn $ "users = " ++ show tty_pids |
132 | dts <- ttyToXorgs tty_pids | 132 | dts <- ttyToXorgs tty_pids |