You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ int main() {
71
71
72
72
*[Reading/Writing files](https://docs.libuv.org/en/v1.x/guide/filesystem.html#reading-writing-files) as in [uvcat/main.c](https://github.com/libuv/libuv/blob/master/docs/code/uvcat/main.c) - 62 line *script*.
73
73
*[Buffers and Streams](https://docs.libuv.org/en/v1.x/guide/filesystem.html#buffers-and-streams) as in [uvtee/main.c](https://github.com/libuv/libuv/blob/master/docs/code/uvtee/main.c) - 79 line *script*.
74
+
*[Spawning child processes](https://docs.libuv.org/en/v1.x/guide/processes.html#spawning-child-processes) as in [spawn/main.c](https://github.com/libuv/libuv/blob/master/docs/code/spawn/main.c) - 36 line *script*.
74
75
*[Networking/TCP](https://docs.libuv.org/en/v1.x/guide/networking.html#tcp) as in [tcp-echo-server/main.c](https://github.com/libuv/libuv/blob/master/docs/code/tcp-echo-server/main.c) - 87 line *script*.
75
76
76
77
*Reduced to:*
@@ -128,6 +129,33 @@ int uv_main(int argc, char **argv) {
128
129
</tr>
129
130
</table>
130
131
132
+
<table>
133
+
<tr>
134
+
<th>spawn.c - 13 lines</th>
135
+
</tr>
136
+
<tr>
137
+
<td>
138
+
139
+
```c
140
+
#include"uv_coro.h"
141
+
142
+
void_on_exit(int64_t exit_status, int term_signal) {
143
+
fprintf(stderr, "\nProcess exited with status %" PRId64 ", signal %d\n", exit_status, term_signal);
Copy file name to clipboardExpand all lines: docs/index.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ int main() {
71
71
72
72
*[Reading/Writing files](https://docs.libuv.org/en/v1.x/guide/filesystem.html#reading-writing-files) as in [uvcat/main.c](https://github.com/libuv/libuv/blob/master/docs/code/uvcat/main.c) - 62 line *script*.
73
73
*[Buffers and Streams](https://docs.libuv.org/en/v1.x/guide/filesystem.html#buffers-and-streams) as in [uvtee/main.c](https://github.com/libuv/libuv/blob/master/docs/code/uvtee/main.c) - 79 line *script*.
74
+
*[Spawning child processes](https://docs.libuv.org/en/v1.x/guide/processes.html#spawning-child-processes) as in [spawn/main.c](https://github.com/libuv/libuv/blob/master/docs/code/spawn/main.c) - 36 line *script*.
74
75
*[Networking/TCP](https://docs.libuv.org/en/v1.x/guide/networking.html#tcp) as in [tcp-echo-server/main.c](https://github.com/libuv/libuv/blob/master/docs/code/tcp-echo-server/main.c) - 87 line *script*.
75
76
76
77
*Reduced to:*
@@ -128,6 +129,33 @@ int uv_main(int argc, char **argv) {
128
129
</tr>
129
130
</table>
130
131
132
+
<table>
133
+
<tr>
134
+
<th>spawn.c - 13 lines</th>
135
+
</tr>
136
+
<tr>
137
+
<td>
138
+
139
+
```c
140
+
#include"uv_coro.h"
141
+
142
+
void_on_exit(int64_t exit_status, int term_signal) {
143
+
fprintf(stderr, "\nProcess exited with status %" PRId64 ", signal %d\n", exit_status, term_signal);
0 commit comments