Allow spawned daemon processes to remain running#57
Allow spawned daemon processes to remain running#57specious wants to merge 5 commits intohypercore-protocol:masterfrom
Conversation
…rocess The spawned daemon processes don't tend to stay running without this option being provided. Fixes hypercore-protocol#52
|
This fix works and without it the CLI-tool doesn't work. A new release with this included would be nice. |
|
What's the easiest way to test this locally? 🤔 |
Pull this fork to test the fix locally: https://github.com/specious/cli/tree/fix/daemon-start |
KougatSundew
left a comment
There was a problem hiding this comment.
I have tested these changes on Fedora 34 & Windows 11. The fix works well.
I pull PR's into a branch to test them like this: |
|
Please get this merged in. It's giving me headaches :sweat_smile. |
|
@mafintosh, could you please take a quick look at this? |
|
@pfrazee, no doubt you are busy, but all you need to do is merge and push to npm. |
|
@andrewosh, maybe you could take a quick look? |
|
@specious hi! we've been focused on making the latest hypercore and hyperdrive (see the -next repos). i suggest you take a look at those. we'll be deprecating the deamon when those land, as they allow for much easier "embedded" workflows so you don't need a daemon at all which is nice. suggest you join the discord if you wanna know more :) |
|
That's quite exciting, but merging this pull request would fix the version that people are currently trying to use. |
|
@mafintosh Can we get this merged and published as a patch? I'm installing this globally with |
|
@ralphtheninja Same. I came across this project today and I wanted to give it a try. NodeJS LTS installed, everything fine... but what... it does not work! Would really appreciate if this was merged. |
|
For the time being, we can install it directly from this pull request: |
I had no clue you could do this. Very nice! |
I'm slightly perplexed as to how this used to work, but testing either way shows that the daemon processes spawned by
hyp daemon starthave a tendency to terminate if they are launched without disconnecting their stdio from the parent process.