Skip to content

Commit 682c9bd

Browse files
committed
Merge branch '2.0'
2 parents 05803f2 + 1adf2ef commit 682c9bd

File tree

6 files changed

+74
-196
lines changed

6 files changed

+74
-196
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
高性能网络服务组件. 提供底层服务封装, 基础管理及客户端调用功能. 使用 `composer` 进行管理, 可在此基础上进行封装整合.
1212

13-
## 环境要求
13+
## 环境要求
1414

1515
* Linux (不考虑windows)
1616
* PHP >= 5.6
17-
* swoole >= 1.9
17+
* swoole >= 1.9.6
1818

1919
源码地址: [swoole](https://github.com/swoole/swoole-src)
2020

@@ -24,7 +24,7 @@ pecl 安装
2424
pecl install swoole
2525
```
2626

27-
### 可选扩展
27+
### 可选扩展
2828

2929
**如果 PHP >= 7.0 的安装 2.0 版本.**
3030

@@ -36,13 +36,13 @@ pecl 安装
3636
pecl install inotify
3737
```
3838

39-
### 安装
39+
### 安装
4040

4141
```
4242
composer require fastd/swoole
4343
```
4444

45-
## 文档
45+
## 文档
4646

4747
[中文文档](docs/zh_CN/readme.md)
4848

docs/zh_CN/3-1-signo.md

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,70 @@
1-
# 信号量
1+
#信号量
22

3-
文档编写中...
3+
对应 PHP 常量,如 SIGTERM -15
4+
5+
```php
6+
<?php
7+
posix_kill(pid, SIGTERM);
8+
```
9+
10+
1. SIGHUP
11+
2. SIGINT
12+
3. SIGQUIT
13+
4. SIGILL
14+
5. SIGTRAP
15+
6. SIGABRT
16+
7. SIGBUS
17+
8. SIGFPE
18+
9. SIGKILL
19+
10. SIGUSR1
20+
11. SIGSEGV
21+
12. SIGUSR2
22+
13. SIGPIPE
23+
14. SIGALRM
24+
15. SIGTERM
25+
17. SIGCHLD
26+
18. SIGCONT
27+
19. SIGSTOP
28+
20. SIGTSTP
29+
21. SIGTTIN
30+
22. SIGTTOU
31+
23. SIGURG
32+
24. SIGXCPU
33+
25. SIGXFSZ
34+
26. SIGVTALRM
35+
27. SIGPROF
36+
28. SIGWINCH
37+
29. SIGIO
38+
30. SIGPWR
39+
31. SIGSYS
40+
34. SIGRTMIN
41+
35. SIGRTMIN+1
42+
36. SIGRTMIN+2
43+
37. SIGRTMIN+3
44+
38. SIGRTMIN+4
45+
39. SIGRTMIN+5
46+
40. SIGRTMIN+6
47+
41. SIGRTMIN+7
48+
42. SIGRTMIN+8
49+
43. SIGRTMIN+9
50+
44. SIGRTMIN+10
51+
45. SIGRTMIN+11
52+
46. SIGRTMIN+12
53+
47. SIGRTMIN+13
54+
48. SIGRTMIN+14
55+
49. SIGRTMIN+15
56+
50. SIGRTMAX-14
57+
51. SIGRTMAX-13
58+
52. SIGRTMAX-12
59+
53. SIGRTMAX-11
60+
54. SIGRTMAX-10
61+
55. SIGRTMAX-9
62+
56. SIGRTMAX-8
63+
57. SIGRTMAX-7
64+
58. SIGRTMAX-6
65+
59. SIGRTMAX-5
66+
60. SIGRTMAX-4
67+
61. SIGRTMAX-3
68+
62. SIGRTMAX-2
69+
63. SIGRTMAX-1
70+
64. SIGRTMAX

src/Coroutine/HTTP.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Coroutine/MySQL.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/Coroutine/Redis.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Coroutine/TCP.php

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)