|
|
Fix a number of issues with the process handling
1. Ignore the signal SIGPIPE on Linux and Mac OS
When reading from or writing to a closed pipe the signal SIGPIPE
is raised. The default handling of this is to terminate the
program. When signal SIGPIPE is ignored the read and write
returns EPIPE.
2. Wrong return type for stdio getter
3. When there is an error on a socket mark it as closed
4. Mark the pipe used for process exit status as a one way pipe
5. Add tests to test stdin, stdout and stderr in Dart scripts
R=ager@google.com
BUG=dart:536, dart:454
TEST=
Committed: https://code.google.com/p/dart/source/detail?r=1793
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+227 lines, -147 lines) |
Patch |
 |
M |
runtime/bin/builtin.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/eventhandler_linux.cc
|
View
|
|
3 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/eventhandler_macos.cc
|
View
|
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/main.cc
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/platform.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/platform_linux.cc
|
View
|
1
2
3
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/platform_macos.cc
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/platform_win.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/process_impl.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/process_linux.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/process_macos.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/socket.h
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_linux.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_macos.cc
|
View
|
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_stream.dart
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
tests/standalone/src/ProcessBrokenPipe.dart
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/standalone/src/ProcessStdIOScript.dart
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/ProcessStderrTest.dart
|
View
|
|
1 chunk |
+38 lines, -46 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/ProcessStdoutTest.dart
|
View
|
|
1 chunk |
+38 lines, -47 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/ProcessTestUtil.dart
|
View
|
1
2
|
2 chunks |
+20 lines, -9 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/src/TestRunnerTest.dart
|
View
|
1
2
3
|
3 chunks |
+2 lines, -23 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|