Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
5a0abc0d
Commit
5a0abc0d
authored
May 03, 2001
by
Niels Möller
Browse files
(main): Start the background randomness poll *after*
forking into the background. XXX Fix in 1.2 branch. Rev: src/lshd.c:1.114
parent
fd497844
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lshd.c
View file @
5a0abc0d
...
...
@@ -480,9 +480,6 @@ main_argp_parser(int key, char *arg, struct argp_state *state)
else
argp_error
(
state
,
"All user authentication methods disabled."
);
/* Start background poll */
RANDOM_POLL_BACKGROUND
(
self
->
random
->
poller
);
break
;
}
case
'p'
:
...
...
@@ -751,6 +748,13 @@ int main(int argc, char **argv)
return
EXIT_FAILURE
;
}
/* NOTE: We have to do this *after* forking into the background,
* because otherwise we won't be able to waitpid() on the background
* process. */
/* Start background poll */
RANDOM_POLL_BACKGROUND
(
options
->
random
->
poller
);
{
/* Commands to be invoked on the connection */
struct
object_list
*
connection_hooks
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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