From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,ce6d485394df844f,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1994-01-09 05:31:23 PST Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!news.funet.fi!hydra.Helsinki.FI!klaava!klaava!not-for-mail From: lars.wirzenius@helsinki.fi (But not really) Newsgroups: comp.os.linux.announce Subject: Term developments and uploads Followup-To: comp.os.linux.misc Date: 9 Jan 1994 15:19:30 +0200 Organization: ? Sender: wirzeniu@klaava.Helsinki.FI Message-ID: <2gp092$9cs@klaava.Helsinki.FI> NNTP-Posting-Host: klaava.helsinki.fi Keywords: term, binaries, bugfixes [ Moderator's note: I have collected three announcements into one, since they are probably all of interest to the same people, and this way you will miss them less certainly. --liw ] From: michael@iinet.com.au (Michael O'Reilly) Subject: TERM 1.10 Organization: iiNET Technologies tartarus.uwa.edu.au:/pub/oreillym/term/term110.tar.gz will be mirrored to sunsite.unc.edu:/pub/Linux/apps/comm/term/term/term110.tar.gz This fixes all the probs in term 109. For those that came late........ Term is a Q&D hack that allows multiplexing across a serial line/modem. It supports error correction, (supports? Hell, you can't get rid of it. ) and compression ( this you can get rid of). It's basically a poor man's sl/ip. It doesn't require any root support at the other end. It's (almost) symetric. It lets you run X over modems (slowly). It allows remote logins, and simultaneous file transfers. It's also close to unsupported. (This means I only answer easy questions... ) 1.0.9 --> 1.10 fixed realloc() for suns. *sigh*. realloc(0, n) fails on a sun. replaced fprintf() with debug_ll(). fixed language in a few places. correction: alpha/osf1 support is by Craig I. Hagen, not marius hancu. My mistake. apologies. Bug introduced into upload fixed. Was causing all transfers to fail leaving zero length files. Delay that was inadvertently left in removed. There was a 1/10th of second delay in the main loop, resuling is awful thruput on v.high speed lines. If the baudrate is set to 0 (i.e. -s0 ) then rate limit is not done. This is useful on higher speed links. The normal window/timeout mechinism is more than good enough on links > 9600. Ps. This is not a version of term. See 109 release notes. I'm not sure quite what it IS, but is definately isn't a version. :-) From: uknf@rzstud1.rz.uni-karlsruhe.de (Olaf Titz) Subject: BUGFIX: term 1.09/1.10 redirection Organization: University of Karlsruhe, Germany In term 1.09 and 1.10, the tredir and txconn clients do not work. This is basically the same error as described in the 1.10 release notes for the tupload client ;-) A fix is included below, it affects only the connect.c module. Also included a patch to take out the clients_waiting parameter (which doesn't exist any more) properly out of tmon and improve the "test" program (oh well, I've needed that much this night...). Olaf --- term110/connect.c +++ connect.c 1994/01/08 04:26:45 @@ -119,6 +119,15 @@ cons = (Con *) realloc((char *) cons, (num_cons + 1) * sizeof(Con)); i = num_cons; + /* New buffers have to be initialized! -ot */ + cons[i].from.data = NULL; + cons[i].from.alloced = 0; + cons[i].to.data = NULL; + cons[i].to.alloced = 0; + add_to_buffer(&cons[i].from, 0); + get_from_buffer(&cons[i].from); + add_to_buffer(&cons[i].to, 0); + get_from_buffer(&cons[i].to); num_cons += 1; } c = &cons[i]; --- term110/tmon.c +++ tmon.c 1994/01/08 04:35:27 @@ -196,14 +196,6 @@ ttgoto ( 1, 41); printf ( "Local %5.2f%% Remote %5.2f%%", lcomp, rcomp ); - /* Get the number of local clients */ - /* waiting to send. */ - STAT (1, -7); - ttgoto ( 2, 4); - printf ( "Clients waiting %s.", command_result); - STAT (0, -7); - printf ( " Remote clients waiting %s.", command_result); - STAT ( 1, -3); sscanf ( command_result, "%d %d", &d1, &d2 ); --- term110/test.c +++ test.c Sat Jan 8 05:53:00 1994 @@ -2,6 +2,15 @@ #define I_SOCKET #define I_IOCTL #include "includes.h" +#include + +int pid[2]; + +void catch(int dummy) { + kill(pid[0],SIGTERM); + kill(pid[1],SIGTERM); + exit(0); +} void main(int argc, char *argv[]) { int i; @@ -14,7 +23,7 @@ exit(1); } - if (!fork()) { + if (!(pid[0]=fork())) { dup2(soc[0], 0); dup2(soc[0], 1); i = open("local.log", O_RDWR | O_CREAT | O_TRUNC , 0600); @@ -29,7 +38,7 @@ perror("execlp failed"); exit(1); } - if (!fork()) { + if (!(pid[1]=fork())) { dup2(soc[1], 0); dup2(soc[1], 1); dup2(open ("remote.log", O_RDWR | O_CREAT | O_TRUNC, 0600), 2); @@ -42,6 +51,11 @@ perror("execlp failed2"); exit(1); } - sleep(36000); - } - + + signal(SIGHUP,catch); + signal(SIGINT,catch); + signal(SIGTERM,catch); + signal(SIGQUIT,catch); + + pause(); + } -- olaf titz o olaf@bigred.ka.sub.org praetorius@irc comp.sc.student _>\ _ s_titz@ira.uka.de LINUX - the choice karlsruhe germany (_)<(_) uknf@dkauni2.bitnet of a GNU generation what good is a photograph of you? everytime i look at it it makes me feel blue From: michael@iinet.com.au (Michael O'Reilly) Subject: TERM 1.11 Organization: iiNET Technologies This fixes all the bugs introduced in 109, and 110 that I and everyone else found. In particular, tredir and txconn should work again. sorry for the semi-numerous non-versions.. Biggest change aside from bug fixes is the makefile. Let me know how it works.. Michael. 1.10 --> 1.11 New linecheck!. Many many thanks to Jeff. Take a look at the beginning of linecheck.c for instructions. Some more stats added to upload. Thanks to platt@coos.dartmouth.edu fixed tredir, txconn. They were broken by the new(ish) dynamic buffers. support for AIX. thanks to Scott logan (silogan@vnet.ibm.com) 1.10 --> 1.10-sil Added USE_TIOCNOTTY to AIX defs in config.h. Added real AIX-style pty handling in pty.c. Fixed redir.c and xconn.c to pay attention to command line options like -t. Fixed test.c to run one side of the test pair with "-r". If you compile with -DLOGIN_SHELL, trsh starts a login shell by default. Bug w.r.t unixware select() fixed. Re-wrote makefile to get rid of all the system specific makefiles. -- Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu PLEASE remember Keywords: and a short description of the software.