Skip to content

Remove daemonization code from docs.rs #844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2020

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