Skip to content
Snippets Groups Projects
  • Ilya Verbin's avatar
    cdd5674c
    main: run an event loop for on_shutdown triggers · cdd5674c
    Ilya Verbin authored
    When Tarantool is stopped by Ctrl+D or by reaching the end of the
    script, run_script_f() breaks the event loop, then tarantool_exit()
    is called from main(), however the fibers that execute on_shutdown
    triggers can not be longer scheduled, because the event loop is
    already stopped. Fix this by starting an auxiliary event loop for
    such cases.
    
    Closes #7434
    
    NO_DOC=bugfix
    cdd5674c
    History
    main: run an event loop for on_shutdown triggers
    Ilya Verbin authored
    When Tarantool is stopped by Ctrl+D or by reaching the end of the
    script, run_script_f() breaks the event loop, then tarantool_exit()
    is called from main(), however the fibers that execute on_shutdown
    triggers can not be longer scheduled, because the event loop is
    already stopped. Fix this by starting an auxiliary event loop for
    such cases.
    
    Closes #7434
    
    NO_DOC=bugfix