UPDATED: March 22, 2019  11:21 AM

DALLAS (CBSDFW.COM) – Dallas police say a man held a piece of broken glass to a toddler’s neck during a standoff, as a way to keep officers at bay.

The tense situation ended just after 3:00 a.m. with the man peacefully surrendering. The child, a 2-year-old girl, is safe.

READ MORE: FBI Dallas Identifies Colleyville Synagogue Hostage Taker As Malik Faisal Akram

For more than an hour though, Dallas police investigators say they were very concerned for the little girl’s safety.

Police first responded to a family violence call, outside a McDonald’s restaurant in southeast Oak Cliff, at 1:30 a.m.

Investigators say the man, now identified as 27-year-old Abel Anderson, stabbed his brother in law, then ran to his home about a block away. Officers went to the house on Southerland Avenue, where they found Anderson inside, refusing to come out.

Also inside the home at the time were the man’s two-year-old niece and her grandmother.

READ MORE: North Texas Rabbi Says He's 'Grateful To Be Alive' After Being Held Hostage 10 Hours Saturday

(credit: CBSDFW.COM)

Police say Anderson broke out a window in a front bedroom and held the child up for those outside to see. At one point, officers say, he took a shard of that broken glass and put it to the little girl’s neck.

SWAT officers began negotiating with Anderson, who told police he would peacefully surrender if they called his brother to the scene. Less than two hours after the incident started, he walked out with his hands on his head.

As soon as the suspect was in custody, officers went inside the home and found the baby girl safe, sitting on a bed. Paramedics confirmed the child was physically unharmed and she is now back with her grandmother.

MORE NEWS: All Hostages Are Out Alive And Safe At Congregation Beth Israel In Colleyville, Suspect Dead

Anderson is charged with multiple counts of Aggravated Assault Family Violence which includes the alleged stabbing of his brother-in-law.