Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle stdin closing

See original GitHub issue


When running react-script from something like Phoenix, when you stop the phoenix process, the react-script process hangs around in the background. Brunch and webpack have both implemented this.

Expected behavior

The process is stopped when stdin is closed.

Actual behavior

The process does not stop.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

connorjacobsencommented, Aug 17, 2018

This is still broken. The above PR is still open.

gaearoncommented, May 19, 2017

Hopefully this is fixed by #2246. Let me know if you see this again with react-scripts >= 1.0.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Closing the Standard Input - Stack Overflow
It seems that there is no way to read the input. However, if you happened to foresee such a situation, you could "save"...
Read more >
Process not closing when stdin is closed - Unix Stack Exchange
stdin is file descriptor 0 . Closing a file descriptor of a process is something that can only be done actively by the...
Read more >
How do I close stdin in a shell script? - Super User
I have a misbehaving program that I need to call from my script. It exits as soon as it sees something on stdin....
Read more >
Sending data to a Python subprocess without closing stdin ...
I've tried something along this lines, to no avail. The problem is that I want the keep the stdin handle open, because if...
Read more >
8.2. Catching user input - The Linux Documentation Project
syntax. In the above example, file descriptor 7, which has been assigned to standard input, is closed each time the user needs to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found