Skip to content

Conversation

@pietroalbini
Copy link
Member

This commit removes the forking code in the docs.rs daemon, forcing it to always run in the background. The rationale for the change is that forking adds complexity and sets extra constraint for development, while it's not needed anymore on modern infrastructure.

The --foreground flag is kept in the binary for compatibility, and it will only print a warning. Once this PR is deployed in production for a while, the flag can be removed.

r? @jyn514

@jyn514
Copy link
Member

jyn514 commented Jun 21, 2020

Looks great to me, the fork() and then doing IO always made uncomfortable anyway (technically it's UB by the C standard if you have threads and don't call execv).

This commit removes the forking code in the docs.rs daemon, forcing it
to always run in the background. The rationale for the change is that
forking adds complexity and sets extra constraint for development, while
it's not needed anymore on modern infrastructure.

The --foreground flag is kept in the binary for compatibility, and it
will only print a warning. Once this commit is deployed in production
for a while, the flag can be removed.
@jyn514 jyn514 merged commit 1dc79b8 into rust-lang:master Jun 22, 2020
@pietroalbini pietroalbini deleted the always-foreground branch June 29, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants