libevent源码分析之信号处理
摘要:
新看看官方demo的libevent如何使用信号int called = 0;static voidsignal_cb(int fd, short event, void *arg){ struct event *signal = arg; printf("%s: got signal %d\n", __func__, EVENT_SIGNAL(signal)); if (called >= 2)... 阅读全文
posted @ 2016-11-17 12:26 笨拙的菜鸟 阅读(1152) 评论(0) 推荐(0) 编辑