EXCLUSIVE: The McCarthys creator Brian Gallivan has signed an overall deal with Sony TV, the studio behind the comedy pilot that remains in contention at CBS. Writer-actor-comedian Gallivan was a staff writer on Sony TV’s cult ABC comedy Happy Endings when his spec The McCarthys, with Sony TV-based Will Gluck attached as executive producer, landed at CBS with a put pilot commitment. It went to pilot, which missed the cut for a series pickup earlier this month but is being kept in consideration by CBS and may undergo some retooling. Loosely inspired by Gallivan’s life, the big family comedy revolves around an Irish-Catholic, sports-crazed Boston clan and the gay son whose greatest sin is not his sexuality but his desire to spend less time with his family. Under the overall pact at Sony, Gallivan will continue on The McCarthys, where he serves as executive producer alongside Gluck, and will develop new projects. CAA-repped Gallivan grew up in the Boston area where he taught middle school language arts before embarking on a comedy career at Boston’s Improv Asylum, Chicago’s Second City Chicago and Upright Citizens Brigade. He is probably best known for the Sassy Gay Friend character he created in the 2004 Second City mainstage revue Red Scare that spawned a Web series.