Search Unity

How to handle SIGINT raised by a native plugin?

Discussion in 'macOS' started by Dublew, Apr 10, 2017.

  1. Dublew

    Dublew

    Joined:
    Aug 5, 2016
    Posts:
    4
    I have a native plugin that can raise a SIGINT if it encounters a fatal error. However this causes Unity to crash instantly. Is there any way to make Unity handle the SIGINT nicely without dying?

    The current workaround I'm using has a callback in C# code that sets isPlaying = false or calls Application.Quit()

    This workaround will not work for fatal errors that absolutely require the application to halt since the above C# code can be modified by the user.