update application to use new api and use signalfd for SIGINT.