mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-15 06:03:02 -05:00
* update rtmp & rtmp demo
This commit is contained in:
22
components/basic/port/linux/maix_sys_linux.cpp
Normal file
22
components/basic/port/linux/maix_sys_linux.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "maix_util.hpp"
|
||||
#include "maix_app.hpp"
|
||||
#include "signal.h"
|
||||
|
||||
namespace maix::sys
|
||||
{
|
||||
static void signal_handle(int signal)
|
||||
{
|
||||
const char *signal_msg = NULL;
|
||||
switch (signal) {
|
||||
case SIGINT:
|
||||
maix::app::set_exit_flag(true);
|
||||
raise(SIGINT);
|
||||
break;
|
||||
default: signal_msg = "UNKNOWN"; break;
|
||||
}
|
||||
}
|
||||
|
||||
void register_default_signal_handle() {
|
||||
signal(SIGILL, signal_handle);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user