for hylafax, from ambrisko_ERASE@tcs.com (Douglas Ambrisko)

*** old/src/libexec/getty/main.c	Wed Aug  9 10:26:28 1995
--- new/src/libexec/getty/main.c	Wed Aug  9 10:28:21 1995
***************
*** 292,298 ****
  	for (;;) {
  		oflush();
  		if (read(STDIN_FILENO, &cs, 1) <= 0)
! 			exit(0);
  		if ((c = cs&0177) == 0)
  			return (0);
  		if (c == EOT || c == 4 /*^D*/)
--- 292,298 ----
  	for (;;) {
  		oflush();
  		if (read(STDIN_FILENO, &cs, 1) <= 0)
! 			return(0);	/* was exit(0); before ambrisko_ERASE@tcs.com (Douglas Ambrisko) fixed this for hylafax not accepting data incoming calls */
  		if ((c = cs&0177) == 0)
  			return (0);
  		if (c == EOT || c == 4 /*^D*/)
# ===============
# From: ambrisko_ERASE@tcs.com (Douglas Ambrisko)
# Subject: Re: Hylafax 3.0
# To: jhs_ERASE_@vector.eikon.e-technik.tu-muenchen.de (Julian H. Stacey)
# Date: Wed, 26 Jul 1995 00:19:59 +0200
# Cc: chapman_ERASE@miller.cs.uwm.edu, ports_ERASE@freebsd.org
# 
# Julian H. Stacey writes:
# | 
# | 
# | Due to an edit error I failed to add to my
# | 
# | >> Has anyone out here successfully set-up the data-call for hylafax 3.0.0 
# | > I assume your config is wrong, please compare your old & new config
# | 
# | My config also doesnt work for data incoming, just for fax i/o,
# | I mean to look at the config .. some time .. 
# | but I have 2 modems, so it's not critical for me.
# | 
# | I never had a good flexfax data incoming config to compare against,
# | feel free to to uuencode & mail me your old was-working flexfax config
# | to compare against our less functional current config.
# | 
# | I'd like to solve this.
# | I'd be even happier if you solve it for us, & send me diffs to commit :-)
# | Cheers,
# | 
# | Julian
# 
# Okay, I have some further info and have hacked a solution to make getty to
# work with HylaFax.  It seems that getty fails in getname and fails on the
# read call and exits which hangs up the connection.  This change makes getty
# work with HylaFax but I do not claim this is a fix, but if you do this
# to the getty sources it doesn't seem to break getty and it works so now I
# can send/receive faxes, accept incoming dial-ins, outgoing tip and 
# outgoing iij-ppp sessions with the same modem.  You will also want to
# set getty args in the config file to "std.38400 -" or you can do a 
# "std.%s -" but I just run it at 38400 no matter what and let the modem
# negotiate the incoming rate.  It is also helpfull to make sure your
# modem is configured to respect DTR etc.  BTW I'm using 2.0.5-RELEASE.
# 
# 
# *** main.c.orig Tue Jul 25 15:04:54 1995
# - --- main.c      Tue Jul 25 15:05:07 1995
# ***************
# *** 292,298 ****
#         for (;;) {
#                 oflush();
#                 if (read(STDIN_FILENO, &cs, 1) <= 0)
# !                       exit(0);
#                 if ((c = cs&0177) == 0)
#                         return (0);
#                 if (c == EOT || c == 4 /*^D*/)
# - --- 292,298 ----
#         for (;;) {
#                 oflush();
#                 if (read(STDIN_FILENO, &cs, 1) <= 0)
# !                       return(0);
#                 if ((c = cs&0177) == 0)
#                         return (0);
#                 if (c == EOT || c == 4 /*^D*/)
# 
# I hope that with this information it will provide some more insight into
# why getty is geting triped up on the read in getname and bailing out.  Then
# maybe we will get a real solution.  But atleast now I can dial into my system.
# 
# Doug A.
