System information
Red Book for AIX Rel. 7.0 and 8.0
36 © 2006 Intuit Inc. All rights reserved.
Troubleshooting a Hung TTY Port for AIX 4.x or 5.x
If your PC loses power and you cannot reestablish the serial connection to the Eclipse system,
you may have a hung TTY port.
Note: Information in this document is correct to the best of our knowledge at the
time of this writing. Please send feedback by fax to AIXServ Information at
(512) 823-4009.
Please use this information with care. IBM will not be responsible for
damages of any kind resulting from its use. The use of this information is
the sole responsibility of the customer and depends on the customer's
ability to evaluate and integrate this information into the customers
operational environment.
To clear a hung tty port:
Note: In the following examples, the hung port tty is assumed to be tty0.
1. Kill any offending running processes as follows:
2. Enter the following command to determine if the tty is currently handling any processes:
ps -ef|grep tty0
The command returns something like the following:
root 12345 10 Aug 29 0 /path/program_name
The process ID here is 12345.
• Enter the following command to kill this process:
kill 12345
If the process is getty, use the following command to kill the process:
pdisable tty0
You can re-enable the process with the following command:
penable tty0
• Enter the following command to determine whether the process was successfully
killed:
ps -ef|grep tty0
2. If the offending process has been successfully killed but the tty is still unresponsive, enter
the following command:
fuser -k /dev/tty0
This command kills any process that can be found running on the port and displays the
PID of each process.