Skip to content

[Bug]: serve --detach doesn't detach #9234

@yous

Description

@yous

Operating System

macOS 12.6.2

Ruby Version

ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin21]

Jekyll Version

jekyll 4.3.1

GitHub Pages Version

No response

Expected Behavior

I expected following commands to work after jekyll detaches:

bundle exec jekyll serve --detach && echo "jekyll detached"

Current Behavior

Jekyll keeps using terminal's stdin, stdout.

$ bundle exec jekyll serve --detach && echo "jekyll detached"
Configuration file: /path/to/site/_config.yml
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
            Source: /path/to/site
       Destination: /path/to/site/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 1.411 seconds.
 Auto-regeneration: disabled when running server detached.
    Server address: http://127.0.0.1:4000/
Server detached with pid '77748'. Run `pkill -f jekyll' or `kill -9 77748' to stop the server.

If I press Ctrl-C, jekyll produces fatal crash:

Relevant log output

No response

Code Sample

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions