Check spawn_func() return value

If we don't, we can wind up with a wedged cpuworker, and write to it
for ages and ages.

Found by skruffy.  This was a bug in 2dda97e8fd, a.k.a. svn
revision 402. It's been there since we have been using cpuworkers.
This commit is contained in:
Nick Mathewson
2014-01-17 12:04:53 -05:00
parent 3511549651
commit 85b46d57bc
2 changed files with 12 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
o Minor bugfixes:
- Check return code on spawn_func() in cpuworker code, so that we don't
think we've spawned a nonworking cpuworker and write junk to it
forever. Fix for bug 4345; bugfix on all released Tor versions.
Found by "skruffy".