Skip to content

Commit

Permalink
fuckport: just kill
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Mar 4, 2025
1 parent c7442df commit 46ffc72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fuckport.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ writers.writeHaskellBin "fuckport"
loadFromBins ["${lsof}", "${coreutils}", "${jc}"]
data LsofRow = LsofRow
data LsofRow = LsofRow
{ command :: String
, pid :: Int
, user :: String
Expand All @@ -35,5 +35,5 @@ writers.writeHaskellBin "fuckport"
let v = fromJust $ decode @[LsofRow] s
forM_ v $ \r -> do
putStrLn $ "Killing " <> show (pid r) <> " (" <> command r <> ")"
kill $ pid r
kill ["-KILL", show (pid r)]
''

0 comments on commit 46ffc72

Please sign in to comment.