summaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-27 07:28:44 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-27 07:28:44 +0000
commitdeac70439953008450fd1c17cad12c2a78a7c04b (patch)
treefe5f84e1bcdd9259ccac9ac2a3f47580cfe57287 /src/or/cpuworker.c
parent9899e09b3b0d8249ba1edd97153a46a4e0c4dea3 (diff)
downloadtor-deac70439953008450fd1c17cad12c2a78a7c04b.tar.gz
tor-deac70439953008450fd1c17cad12c2a78a7c04b.zip
connection_new() can't ever fail
svn:r497
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index b67e4ca8ff..4d3764798b 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -179,10 +179,6 @@ static int spawn_cpuworker(void) {
close(fd[1]); /* we don't need the worker's side of the pipe */
conn = connection_new(CONN_TYPE_CPUWORKER);
- if(!conn) {
- close(fd[0]);
- return -1;
- }
set_socket_nonblocking(fd[0]);