But the deal closed shortly after a second screening yesterday morning in Park City, which followed at the packed and emotional premiere Sunday night.

Shelly was found dead on Nov. 1 in her Greenwich Village office. Police said she was slain by a construction worker who attacked her after she complained about noise he and other workers were making in a downstairs apartment.

Diego Pillco, 19, who has pleaded not guilty and is awaiting trial, allegedly struck her unconscious and hanged her body from a shower curtain to make it look like a suicide. Shelly’s film had been accepted by Sundance at the time, but she had not yet been notified.

While the movie certainly got more press attention because of her death, Sundance vets say the price tag is not out of the ordinary for a lighthearted film of its quality and star wattage.

The movie stars Keri Russell as an unhappily married and pregnant waitress in a Southern diner who has an affair with her gynecologist. It co-stars Cheryl Hines from “Curb Your Enthusiasm” and the legendary Andy Griffith.

Russell, who announced her real-life pregnancy recently, celebrated the sale with a hamburger in a publicist’s office at the Park City Marriott, along with Hines.

Shelly wrote, directed and plays a supporting role in “Waitress.” She also wrote a song for the movie.

Her widower, Andrew Ostroy, used the premiere to announce the creation of an Adrienne Shelly Foundation to fund female filmmakers.

“Waitress” was the second film in as many days snapped up by Fox Searchlight, which purchased the thriller “Joshua” also for around a reported $4 million.