标签:
1、督程: test_sup
2、子进程:test_gen_server
3、子进程规格Spec: { test_gen_server,
{test_gen_server, start_link, []},
permanent,
4000,
worker,
[test_gen_server] }
4、启动子进程:supervisor:start_child(test_sup,Spec).
5、结束子进程:supervisor:terminate_child(test_sup,test_gen_server).
6、删除子进程规范:supervisor:delete_child(test_sup,test_gen_server).
7、再次启动子进程:supervisor:start_child(test_sup,Spec).
标签:
原文地址:http://www.cnblogs.com/gcczhongduan/p/5286756.html