What's the movie where he's a cop with 6 months to live?
There's a film where he's a police officer or a detective who has six months to live. It involves a kidnapping attempt by a man who's on trial for decades of drug trafficking, only the man assigned to do the kidnapping breaks into the wrong house and an innocent man's son is taken hostage by mistake. If I remember correctly, it was pretty much an action movie.
SPOILERS
At the end of the film, the man who was on trial is released and makes several threats against Rip Torn's character about how he is going to desecrate his grave. Seeing as he has but a few months to live anyway, Torn's character has nothing to lose and shoots the man dead on the steps leaving the courtroom.