2016年11月17日

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 笨拙的菜鸟 阅读(1083) 评论(0) 推荐(0) 编辑

Linux之epoll详细解析实现

摘要: /* * fs/eventpoll.c (Efficient event retrieval implementation) * Copyright (C) 2001,...,2009 Davide Libenzi * * This program is free software; you can redistribute it and/or modify * it und... 阅读全文

posted @ 2016-11-17 12:23 笨拙的菜鸟 阅读(5280) 评论(0) 推荐(0) 编辑

导航