Skip to content

doc: child_process.kill() on windows needs clarification #34858

Closed

Description

@s4m0r4m4

📗 API Reference Docs Problem

  • Version: v14 and previous ones as well, like v12 LTS
  • Platform: Windows
  • Subsystem: child_process signals

Location

Section of the site where the content exists

Affected URL(s):

Description

Concise explanation of the problem

The NodeJS signals documentation (https://nodejs.org/api/process.html#process_signal_events) is pretty clear that on windows child_process.kill() does NOT actually send the signal, but rather just kills the child process abruptly.

However, the child_process.kill() documentation does not make this clarification, and it's opening sentence ("The subprocess.kill() method sends a signal to the child process. ") leads one to believe that the signal will in fact be sent to the child process on any platform, windows included.

I'd love to just see a quick blurb/sentence that clarifies the behavior on windows vs other platforms (or perhaps just a link pointing to the signals documentation - https://nodejs.org/api/process.html#process_signal_events).


  • I would like to work on this issue and
    submit a pull request.

Activity

  1. added
    docIssues and PRs related to Node.js documentation.
    on Aug 20, 2020
  2. changed the title [-]doc: child_process.kill() on windows misleading[/-] [+]doc: child_process.kill() on windows needs clarification[/+] on Aug 20, 2020
  3. joaolucasl commented on Aug 21, 2020

    @joaolucasl
    Contributor

    I can work on this if you're not willing to submit the PR yourself @s4m0r4m4, would that be okay?

  4. s4m0r4m4 commented on Aug 21, 2020

    @s4m0r4m4
    Author

    Totally! I'm haven't contributed to the NodeJS docs before so I'm fine with you doing it!

  5. juanarbol commented on Aug 21, 2020

    @juanarbol
    Member

    Thank you @s4m0r4m4 for your report, amazing, and thank you @joaolucasl for offering to help. Leave a comment if you need help.

  6. joaolucasl commented on Aug 21, 2020

    @joaolucasl
    Contributor

    @juanarbol @s4m0r4m4

    Just opened a PR with an initial paragraph to make this clearer. Let me know with a comment there if you have suggestions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions