error controlling tty (ioctl)
Marcus Gruendler (runner@aachen.heimat.de)
Sat, 20 Sep 1997 00:23:02 +0200
Dear mgetty users,
I'm new to the list and I have problems to make mgetty work for FAX-use.
When I start mgetty by calling <path>/mgetty ttyS1 everything works
fine.
But as soon as a FAX call comes in, mgetty is not able to receive the
FAX.
Here's a cut from the log:
09/19 23:50:59 yS1 mgetty: experimental test release 1.1.9-Aug17
09/19 23:50:59 yS1 check for lockfiles
09/19 23:50:59 yS1 checklock: stat failed, no file
09/19 23:50:59 yS1 locking the line
09/19 23:50:59 yS1 makelock(ttyS1) called
09/19 23:50:59 yS1 do_makelock: lock='/var/lock/LCK..ttyS1'
09/19 23:50:59 yS1 lock made
09/19 23:51:00 yS1 tio_get_rs232_lines: status: RTS CTS DSR DTR
09/19 23:51:00 yS1 lowering DTR to reset Modem
09/19 23:51:00 yS1 tss: set speed to 38400 (017)
09/19 23:51:00 yS1 tio_set_flow_control( HARD )
09/19 23:51:00 yS1 waiting for line to clear (VTIME), read:
09/19 23:51:01 yS1 send: \dATQ0V1H0[0d]
09/19 23:51:01 yS1 waiting for ``OK''
09/19 23:51:01 yS1 got: ATQ0V1H0[0d]
09/19 23:51:01 yS1 CND: ATQ0V1H0[0d][0a]OK ** found **
09/19 23:51:02 yS1 send: ATS0=0Q0&D3&C1[0d]
09/19 23:51:02 yS1 waiting for ``OK''
09/19 23:51:02 yS1 got: [0d]
09/19 23:51:02 yS1 CND: OK[0a]ATS0=0Q0&D3&C1[0d]
09/19 23:51:02 yS1 CND: ATS0=0Q0&D3&C1[0d][0a]OK ** found **
09/19 23:51:02 yS1 mdm_send: 'AT+FCLASS=2'
09/19 23:51:02 yS1 got:[0d][0a]AT+FCLASS=2[0d]
09/19 23:51:02 yS1 mdm_command: string 'AT+FCLASS=2'
09/19 23:51:02 yS1 got:[0d][0a]OK[0d]
09/19 23:51:02 yS1 mdm_command: string 'OK' -> OK
09/19 23:51:02 yS1 mdm_send: 'AT+FCLASS=0'
09/19 23:51:02 yS1 got:[0a]AT+FCLASS=0[0d]
09/19 23:51:02 yS1 mdm_command: string 'AT+FCLASS=0'
09/19 23:51:02 yS1 got:[0d][0a]OK[0d]
09/19 23:51:03 yS1 mdm_command: string 'OK' -> OK
09/19 23:51:03 yS1 mdm_send: 'AT+FAA=1;+FCR=1'
09/19 23:51:03 yS1 got:[0a]AT+FAA=1;+FCR=1[0d]
09/19 23:51:03 yS1 mdm_command: string 'AT+FAA=1;+FCR=1'
09/19 23:51:03 yS1 got:[0d][0a]OK[0d]
09/19 23:51:03 yS1 mdm_command: string 'OK' -> OK
09/19 23:51:03 yS1 mdm_send: 'AT+FBOR=0'
09/19 23:51:03 yS1 got:[0a]AT+FBOR=0[0d]
09/19 23:51:03 yS1 mdm_command: string 'AT+FBOR=0'
09/19 23:51:03 yS1 got:[0d][0a]OK[0d]
09/19 23:51:03 yS1 mdm_command: string 'OK' -> OK
09/19 23:51:03 yS1 mdm_send: 'AT+FLID="49 241 33636"'
09/19 23:51:03 yS1 got:[0a]AT+FLID="49 241 33636"[0d]
09/19 23:51:03 yS1 mdm_command: string 'AT+FLID="49 241 33636"'
09/19 23:51:03 yS1 got:[0d][0a]OK[0d]
09/19 23:51:03 yS1 mdm_command: string 'OK' -> OK
09/19 23:51:04 yS1 mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0'
09/19 23:51:04 yS1 got:[0a]AT+FDCC=1,5,0,2,0,0,0,0[0d]
09/19 23:51:04 yS1 mdm_command: string 'AT+FDCC=1,5,0,2,0,0,0,0'
09/19 23:51:04 yS1 got:[0d][0a]OK[0d]
09/19 23:51:04 yS1 mdm_command: string 'OK' -> OK
09/19 23:51:04 yS1 waiting for line to clear (VTIME), read:
09/19 23:51:04 yS1 removing lock file
09/19 23:51:04 yS1 waiting...
09/20 00:14:22 yS1 select returned 1
09/20 00:14:22 yS1 checking lockfiles, locking the line
09/20 00:14:22 yS1 makelock(ttyS1) called
09/20 00:14:22 yS1 do_makelock: lock='/var/lock/LCK..ttyS1'
09/20 00:14:22 yS1 lock made
09/20 00:14:22 yS1 waiting for ``RING''
09/20 00:14:22 yS1 got: [0d]
09/20 00:14:22 yS1 CND: OK[0a]RING ** found **
09/20 00:14:22 yS1 cannot set controlling tty (ioctl): Operation not
permitted
09/20 00:14:22 yS1 send: ATA[0d]
09/20 00:14:22 yS1 waiting for ``CONNECT''
09/20 00:14:22 yS1 got: [0d]
09/20 00:14:22 yS1 CND: RING[0a]error: -1[0a]
09/20 00:14:22 yS1 CND: error: -1ATA[0d]
09/20 00:14:22 yS1 CND: ATA[0d][0a]CONNECT ** found **
09/20 00:14:34 yS1 send:
09/20 00:14:34 yS1 waiting for ``_''
09/20 00:14:34 yS1 got: 75/1200[0d]
09/20 00:14:34 yS1 CND: CONNECT 75/1200
09/20 00:14:34 yS1 CND: found: 75/1200[0a] ** found **
09/20 00:14:34 yS1 waiting for line to clear (VTIME), read:
09/20 00:14:35 yS1 looking for utmp entry... (my PID: 2539)
09/20 00:14:35 yS1 tio_set_flow_control( HARD )
09/20 00:14:35 yS1 print welcome banner (/etc/issue)
09/20 00:14:35 yS1 getlogname (no opts), read:
09/20 00:14:36 yS1 getlogname: got EOF, exiting
I found out that the errormessage 'cannot set controlling tty (ioctl)'
comes from
the file mg_m_init.c, line 404. But why does this happen?
I checked the following things:
*there is no other program running using ttyS1 or modem or cua... there
is only mgetty.
*/dev/ttyS1 is owned by user uucp and belongs to group uucp. This is
mentioned in
policy.h, too.
*there is no lockfile in /var/lock/
Here is my system configuration:
linux 2.0.29
mgetty 1.1.9
modem: unknown thus i don't know how to find out the name of it (it
says V.17 FAX on the front)
The only thing I could think of after 15h work on it is that there is a
problem with my modem.
I would be very happy if anyone could help...
bye, Marcus
.