Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
1ae45b77
Commit
1ae45b77
authored
Mar 12, 2004
by
Roger Dingledine
Browse files
don't close all the fd's when you spawn a thread, only when you fork
svn:r1267
parent
965a73dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/or/cpuworker.c
View file @
1ae45b77
...
...
@@ -127,8 +127,9 @@ int cpuworker_main(void *data) {
close
(
fdarray
[
0
]);
/* this is the side of the socketpair the parent uses */
fd
=
fdarray
[
1
];
/* this side is ours */
#ifndef MS_WINDOWS
connection_free_all
();
/* so the child doesn't hold the parent's fd's open */
/* XXX probably don't close all the fd's on MS_WINDOWS? */
#endif
for
(;;)
{
...
...
src/or/dns.c
View file @
1ae45b77
...
...
@@ -412,8 +412,9 @@ int dnsworker_main(void *data) {
close
(
fdarray
[
0
]);
/* this is the side of the socketpair the parent uses */
fd
=
fdarray
[
1
];
/* this side is ours */
#ifndef MS_WINDOWS
connection_free_all
();
/* so the child doesn't hold the parent's fd's open */
/* XXX probably don't close all the fd's on MS_WINDOWS? */
#endif
for
(;;)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment