-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Linux: Startup thread that launches node subprocess #170
Comments
Comment by jasonsanjose cc @joelrbrandt to see if he has any thoughts. Assigned to @jasonsanjose. |
Comment by timburgess I've done more work on this and now:
node restart is yet to be implemented and there are probably more syscall checks required |
Comment by thefirstofthe300 I noticed a problem with the node setup script integrating with @timburgess's node setup. Tim's node setup seems to call node from the I think @timburgess will either want to adapt, or the grunt script needs to call a copy instead of rename. |
Comment by timburgess Good point. When @jasonsanjose's grunt build PR goes into master, I will need to adjust to suit any path and or binary file name changes. At present, the code does run node from |
Comment by jasonsanjose @timburgess the |
Comment by timburgess Doing it right now :-) |
Comment by timburgess With @jasonsanjose 's Sprint 29 in master, I have rebased from master and made changes to run I have been working on an extension with node-side code so will do some more testing to confirm that it works on Linux in the same way it does on OS X. |
Comment by timburgess Tried a couple of extensions with node-side code. All works for me. |
Comment by jasonsanjose Fantastic! I'll try this first thing tomorrow. |
Comment by joelrbrandt @timburgess nice! thanks for your hard work. |
Comment by jasonsanjose Closing, see #306. |
Issue by timburgess
Monday Jul 15, 2013 at 05:11 GMT
Originally opened as adobe#278
This is some initial work in getting the node process up & running in Linux.
With this code, brackets-shell kicks off a mutexed launch thread that starts the Node executable in a subprocess.
As per the latest linux setup script, Node is launched from brackets-shell/deps/node/bin/node.
A file descriptor in the startup thread is piped to STDIN in the subprocess.
I have experimented with passing input to the node process to eval(). This works but Node appears to buffer it's output if it detects that STDIN is not a terminal. If I run node in interactive mode i.e. 'node -i' it stops buffering but produces a lot more output than I think is wanted.
I'd appreciate getting some feedback on how to run Node as then I can add code to setup a pipe from the subprocess STDOUT to a thread that reads the output.
timburgess included the following code: https://github.com/adobe/brackets-shell/pull/278/commits
The text was updated successfully, but these errors were encountered: