There are various causes of the tty "respawning too rapidly" error, from cabling problems to corrupt configuration files. This document contains a list of possible causes with suggestions for resolving the problem. This document applies to AIX 3.1 and 3.2 on the RS/6000.
In general, the "respawning too rapidly" message is sent by the system to warn users that there is a problem on the tty port and that too many gettys, or "login heralds", have been requested for that port.
The following scenario shows how this error may occur. Note that the timing numbers shown below may change in later versions of AIX.
Note: You can duplicate this yourself by logging in and out of the terminal several times very quickly within the above mentioned time span.
Note: PTF IX37168 changes the amount of time that the port is suspended from 19 minutes to a maximum of 240 seconds.
Suggestions for HAYES compatible modems:
Suggestions:
Suggestions:
Suggestions:
Suggestions:
Note: Certain buffer errors can be caused by faulty hardware.
Suggestions:
Suggestions:
Suggestions:
If the system permanently shuts down the tty port, the system administrator may need to reboot or run the following program.
In the following code, some characters may appear incorrectly. If the characters in the following list do not match their description, be sure to change them in the code.
(Code begins on next page.)
/* CLEARTTY.c
Program to attempt a reset of tty port without rebooting.
To test the effectiveness of this program, do the following
both before and after running cleartty:
pdisable tty0
echo "tty tty0" | crash > crash.out
NOTE: If tty0 is on a 16-port concentrator off a 64-port Async
Adapter, you would replace "tty0" with "tty0/0".
Edit the "crash.out" file created above and look at the
"port status" line. A normal, "disabled" port should have
a status of "iclose ccnt=0".
______________________________________________________________________
To create program:
o "vi cleartty.c"
o enter the following C program and save the file
To compile program: "cc -o cleartty cleartty.c"
To execute program: "cleartty /dev/tty0"
______________________________________________________________________ */
/* PROGRAM BEGINS HERE */
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <termios.h>
main(int argc, char *argv[])
{
int fd;
if (argc < 2) {
fprintf(stderr, "Usage: %s /dev/tty?
", argv[0]);
exit(1);
}
if ((fd = open(argv[1], O_RDWR | O_NONBLOCK)) < 0) {
perror(argv[1]);
exit(errno);
}
if (tcflow(fd, TCOON) < 0) {
perror("tcflow");
exit(errno);
}
close(fd);
exit(0);
}
/* PROGRAM ENDS HERE */