diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-19 09:35:59 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-19 09:35:59 -0700 |
commit | 47e3d475df6244a48b73421cd4210b64c392df8d (patch) | |
tree | 5b4459341a6c6a7211749796367f536a09f1faa1 /sys/cmd/rc/input.c | |
parent | ead340a66039096c7b4bf12dcd65e189769c6653 (diff) |
feat(rc): cleaner process watching for each job
Diffstat (limited to 'sys/cmd/rc/input.c')
-rw-r--r-- | sys/cmd/rc/input.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/cmd/rc/input.c b/sys/cmd/rc/input.c index 4c6b37f..228b2d8 100644 --- a/sys/cmd/rc/input.c +++ b/sys/cmd/rc/input.c @@ -995,7 +995,7 @@ notty(void) for(;;){
c = fgetc(stdin);
- put(&proc->cmd.io, c);
+ put(&runner->cmd.io, c);
}
}
@@ -1019,17 +1019,17 @@ readline(char *prompt) int n;
// reset the command buffer
- proc->cmd.io->e = proc->cmd.io->b = proc->cmd.io->buf;
+ runner->cmd.io->e = runner->cmd.io->b = runner->cmd.io->buf;
if(!shell.interactive)
return notty();
- if((n = raw(proc->cmd.io->e, proc->cmd.io->cap-1, prompt)) == -1)
+ if((n = raw(runner->cmd.io->e, runner->cmd.io->cap-1, prompt)) == -1)
return 0;
- proc->cmd.io->e += n;
+ runner->cmd.io->e += n;
/* insert a newline character at the end */
- put(&proc->cmd.io, '\n');
+ put(&runner->cmd.io, '\n');
printf("\n");
return 1;
|