Detect "BREAK" condition on serial bus (UART)

Hi,

I have the following board: BBB rev. C with Debian distro on it.

I want to be able to somehow detect the “BREAK” condition on the UART bus.

Using the following* code it doesn’t work (the SIGINT signal is only emited when I press “CTRL+C”, but is not present when a “BREAK” condition appears on the UART).

Any solutions?