On Sun, Jul 24, 2022 at 11:35:18PM -0700, Kastus Shchuka wrote: > On Mon, Jul 25, 2022 at 01:38:41AM -0400, Hugo Villeneuve wrote: > > > > I wrote this ages ago: > > > > https://marc.info/?l=openbsd-misc&m=139089795907395&w=2 > > > > it may apply to you. > > Thank you for the link. Unfortunately, adding "local" to tty00 made no > difference. >
Apparently, restarting getty on tty00 was not enough. After reboot, I got login prompt on tty00 line. So, "local" really fixes it. I guess without "local" getty waits for the carrier which never comes on a null modem. > The other percularity that I noticed, getty on tty00 stays in > ttyopn wait state, while other terminals where I can see login prompt, > are in ttyin state. Please see pid 11907 below: > > jetway$ pgrep -lf getty > 11907 /usr/libexec/getty std.9600 tty00 > 21180 /usr/libexec/getty std.9600 ttyC0 > 18041 /usr/libexec/getty std.9600 ttyC5 > 70940 /usr/libexec/getty std.9600 ttyC3 > 62965 /usr/libexec/getty std.9600 ttyC2 > 65765 /usr/libexec/getty std.9600 ttyC1 > > > and top shows > > load averages: 0.02, 0.01, 0.00 > jetway.tprfct.net 23:31:10 > 39 processes: 38 idle, 1 on processor > up 3:46 > CPU0 states: 0.0% user, 0.0% nice, 0.0% sys, 0.0% spin, 0.0% intr, 100% > idle > CPU1 states: 0.0% user, 0.0% nice, 0.0% sys, 0.0% spin, 0.0% intr, 100% > idle > CPU2 states: 0.0% user, 0.0% nice, 0.0% sys, 0.0% spin, 0.0% intr, 100% > idle > CPU3 states: 0.0% user, 0.0% nice, 0.0% sys, 0.0% spin, 0.0% intr, 100% > idle > Memory: Real: 34M/1320M act/tot Free: 6520M Cache: 711M Swap: 0K/8349M > > PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND > 21180 root 3 0 512K 1500K idle ttyin 0:03 0.00% getty > 70940 root 3 0 516K 1492K idle ttyin 0:00 0.00% getty > 62965 root 3 0 508K 1476K idle ttyin 0:00 0.00% getty > 65765 root 3 0 508K 1472K idle ttyin 0:00 0.00% getty > 18041 root 3 0 508K 1476K idle ttyin 0:00 0.00% getty > 11907 root 3 0 508K 1496K idle ttyopn 0:00 0.00% getty > > I wonder if getty cannot open tty00 for some reason. > Now getty looks like it should: jetway$ pgrep -lf getty 33943 /usr/libexec/getty std.9600 tty00 31285 /usr/libexec/getty std.9600 ttyC5 69646 /usr/libexec/getty std.9600 ttyC3 36033 /usr/libexec/getty std.9600 ttyC2 90820 /usr/libexec/getty std.9600 ttyC1 13016 /usr/libexec/getty std.9600 ttyC0 PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND 33943 root 3 0 508K 1520K idle ttyin 0:07 0.00% getty 90820 root 3 0 512K 1512K idle ttyin 0:00 0.00% getty 36033 root 3 0 508K 1492K idle ttyin 0:00 0.00% getty 69646 root 3 0 512K 1512K idle ttyin 0:00 0.00% getty 13016 root 3 0 504K 1500K idle ttyin 0:00 0.00% getty 31285 root 3 0 508K 1500K idle ttyin 0:00 0.00% getty Thanks a lot!