Hi guys,

  I have written a little utility to monitor CPU and Network utilizaion on my wrt54g.  The code is the
same as on my Fedora Core 3 system.  The code runs on both systems and functions correctly.
My problem is that when I ssh into the wrt54g and run the program, all is well until I quit the
program.  At that time, the ssh session drops it's connections.

  The program is written in 'C' and I use 'exit (0)' to terminate the program.  There are no error
messages during compile or run time.

  This is the output with debuging turned on for ssh:

# pfssh_mips debug2: channel 0: rcvd adjust 1

#!interval 1
603 CMD
# PFSSH: Version 1.0 Started; Admin@Mt-Umunhum-Wireless.net
74776.00  cpu0 3 1 eth0 212 268
74777.02  cpu0 1 0 eth0 180 312
74778.01  cpu0 1 1 eth0 180 248
debug2: channel 0: rcvd adjust 1
debug2: channel 0: rcvd adjust 1
74779.01  cpu0 1 1 eth0 749 719
287 quit
q
# PFSSH: q
# PFSSH: pfssh_mips.c: 309 q

426 quit
# PFSSH: Quit
#!quit
# PFSSH: pfssh_mips.c: 617 Setlinebuf failed: No such file or directory
# PFSSH: pfssh_mips.c: 624 Setlinebuf failed: No such file or directory
# exiting Quit
428 quit
603 CMD
312 quit
74780.03  cpu0 2 0 eth0 846 1538
# Terminating
# debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
debug1: channel 0: obuf empty
debug1: channel 0: close_write
debug1: channel 0: output drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: rcvd close
debug1: channel 0: close_read
debug1: channel 0: input open -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: client-session, nchannels 1
Connection to 10.1.1.4 closed.
debug1: Transferred: stdin 0, stdout 0, stderr 32 bytes in 460.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.1
debug1: Exit status 0

  Any ideas??

  William Estrada