You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.spawn() allows us to run any systems process, like chroot. This is pretty useful moving forward as in the future, we aren't bound to starting a node process. This also forces us to only have access to the stdio streams ( stdin / stdout / stderr ). stderr is currently being overloaded as a one-way message passing channel. It seems to be working.
.fork() only allows us to run a node process, and we get a bi-directional messaging channel to the process. This is nice, because we can use the bi-directional channel for a lot of things. Maybe it's better to not use it and keep it simple. This change would require using something like posix npm module to chroot the node process after it's started. Not sure I like that approach.
Keeping this issue open as reference.
The text was updated successfully, but these errors were encountered:
.spawn() allows us to run any systems process, like
chroot
. This is pretty useful moving forward as in the future, we aren't bound to starting a node process. This also forces us to only have access to the stdio streams ( stdin / stdout / stderr ). stderr is currently being overloaded as a one-way message passing channel. It seems to be working..fork() only allows us to run a node process, and we get a bi-directional messaging channel to the process. This is nice, because we can use the bi-directional channel for a lot of things. Maybe it's better to not use it and keep it simple. This change would require using something like
posix
npm module to chroot the node process after it's started. Not sure I like that approach.Keeping this issue open as reference.
The text was updated successfully, but these errors were encountered: