FreeCalypso > hg > freecalypso-tools
changeset 423:e40bb5a6c6b9
rvinterf clients: implemented 30 ms delay for batch ops with -p
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 28 Oct 2018 00:30:16 +0000 |
parents | c1aadfcd185f |
children | dd0247097097 |
files | rvinterf/asyncshell/main.c rvinterf/etmsync/fsiomain.c rvinterf/etmsync/memdump.c rvinterf/etmsync/readcal.c rvinterf/etmsync/simplemain.c rvinterf/etmsync/tmsmain.c rvinterf/libinterf/launchrvif.c rvinterf/rvtat/main.c rvinterf/tmsh/main.c |
diffstat | 9 files changed, 11 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/rvinterf/asyncshell/main.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/asyncshell/main.c Sun Oct 28 00:30:16 2018 +0000 @@ -60,7 +60,7 @@ argv[0]); exit(ERROR_USAGE); } - launch_rvinterf(); + launch_rvinterf(0); } else { if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { fprintf(stderr,
--- a/rvinterf/etmsync/fsiomain.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/etmsync/fsiomain.c Sun Oct 28 00:30:16 2018 +0000 @@ -50,7 +50,7 @@ argv[0]); exit(ERROR_USAGE); } - launch_rvinterf(); + launch_rvinterf(argv[optind] || !isatty(0)); } else { if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { fprintf(stderr,
--- a/rvinterf/etmsync/memdump.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/etmsync/memdump.c Sun Oct 28 00:30:16 2018 +0000 @@ -106,7 +106,7 @@ argv[0]); exit(ERROR_USAGE); } - launch_rvinterf(); + launch_rvinterf(1); } else { if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { fprintf(stderr,
--- a/rvinterf/etmsync/readcal.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/etmsync/readcal.c Sun Oct 28 00:30:16 2018 +0000 @@ -255,7 +255,7 @@ } if (compal_mode && !rvinterf_Bopt) rvinterf_Bopt = "57600"; - launch_rvinterf(); + launch_rvinterf(1); } else { if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { fprintf(stderr,
--- a/rvinterf/etmsync/simplemain.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/etmsync/simplemain.c Sun Oct 28 00:30:16 2018 +0000 @@ -48,7 +48,7 @@ argv[0]); exit(ERROR_USAGE); } - launch_rvinterf(); + launch_rvinterf(1); } else { if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { fprintf(stderr,
--- a/rvinterf/etmsync/tmsmain.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/etmsync/tmsmain.c Sun Oct 28 00:30:16 2018 +0000 @@ -48,7 +48,7 @@ argv[0]); exit(ERROR_USAGE); } - launch_rvinterf(); + launch_rvinterf(argv[optind] || !isatty(0)); } else { if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { fprintf(stderr,
--- a/rvinterf/libinterf/launchrvif.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/libinterf/launchrvif.c Sun Oct 28 00:30:16 2018 +0000 @@ -16,7 +16,7 @@ char *rvinterf_ttyport, *rvinterf_Bopt, *rvinterf_lopt, *rvinterf_wopt; -launch_rvinterf() +launch_rvinterf(do_delay) { int sp[2], rc; char *rvif_argv[11], Sarg[16], **ap; @@ -59,5 +59,7 @@ _exit(1); } close(sp[1]); + if (do_delay) + usleep(30000); return 0; }
--- a/rvinterf/rvtat/main.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/rvtat/main.c Sun Oct 28 00:30:16 2018 +0000 @@ -115,7 +115,7 @@ argv[0]); exit(ERROR_USAGE); } - launch_rvinterf(); + launch_rvinterf(1); } else { if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { fprintf(stderr,
--- a/rvinterf/tmsh/main.c Sun Oct 28 00:00:51 2018 +0000 +++ b/rvinterf/tmsh/main.c Sun Oct 28 00:30:16 2018 +0000 @@ -60,7 +60,7 @@ argv[0]); exit(ERROR_USAGE); } - launch_rvinterf(); + launch_rvinterf(argv[optind] && !oneshot_nowait); } else { if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { fprintf(stderr,