Can I execute free() or close() in a signal handler?

前端 未结 0 448
半阙折子戏
半阙折子戏 2020-12-10 22:37

I have a code that looks like this:

//global variables

void signal_handler() {
    //deallocation of global variables
    free(foo);
    close(foo_2);
    ex         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题