mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
add module signal and hack lua to support it :)
This commit is contained in:
@@ -156,3 +156,9 @@ snlua_release(struct snlua *l) {
|
||||
lua_close(l->L);
|
||||
skynet_free(l);
|
||||
}
|
||||
|
||||
void
|
||||
snlua_signal(struct snlua *l, int signal) {
|
||||
skynet_error(l->ctx, "recv a signal %d", signal);
|
||||
skynet_sig_L = l->L;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user