acl/lib_acl/samples/vstream_popen3/child.c
zsxxsz cf2528eb7c 完善了非阻塞IO的SSL功能;将 samples 移到 lib_acl 目录下
完善了非阻塞IO的SSL功能;将 acl/samples/ 下的示例分别移到 lib_acl 及 lib_protocol 目录下
2014-11-30 21:15:35 +08:00

25 lines
461 B
C

#include "lib_acl.h"
#include <signal.h>
static void on_sigterm(int signo)
{
acl_msg_info("get signal sigterm: %d, %d", signo, SIGTERM);
}
static void on_sigkill(int signo)
{
acl_msg_info("get signal sigkill: %d, %d", signo, SIGKILL);
}
int main(int argc acl_unused, char *argv[] acl_unused)
{
acl_msg_open("./child.log", "child");
signal(SIGTERM, on_sigterm);
signal(SIGKILL, on_sigkill);
while (1)
pause();
return (0);
}