Explorar o código

Remove outdated FIXMEs about consuming extra stdin data

Sam Atkins hai 1 ano
pai
achega
bf33fd752d

+ 0 - 2
packages/phoenix/src/puter-shell/providers/PathCommandProvider.js

@@ -83,7 +83,6 @@ function spawn_process(ctx, executablePath) {
     // Repeatedly copy data from stdin to the child, while it's running.
     let data, done;
     const next_data = async () => {
-        // FIXME: This waits for one more read() after we finish.
         ({ value: data, done } = await Promise.race([
             exit_promise, sigint_promise, ctx.externs.in_.read(),
         ]));
@@ -135,7 +134,6 @@ function spawn_pty(ctx, executablePath) {
     // Repeatedly copy data from stdin to the child, while it's running.
     let data, done;
     const next_data = async () => {
-        // FIXME: This waits for one more read() after we finish.
         ({ value: data, done } = await Promise.race([
             exit_promise, sigint_promise, ctx.externs.in_.read(),
         ]));

+ 0 - 1
packages/phoenix/src/puter-shell/providers/PuterAppCommandProvider.js

@@ -86,7 +86,6 @@ export class PuterAppCommandProvider {
                     // DRY: Initially copied from PathCommandProvider
                     let data, done;
                     const next_data = async () => {
-                        // FIXME: This waits for one more read() after we finish.
                         ({ value: data, done } = await Promise.race([
                             app_close_promise, sigint_promise, ctx.externs.in_.read(),
                         ]));