You are not logged in.
Today my tmux always quit just seconds after I opened it,I try strace it but didn't find where the problem is,anyone can help?
the strace result is here:
http://paste.kde.org/p84a85545/
It's shell exited.Somehow there is TIMOUT in /etc/profile,comment that out,and things are fine.
Last edited by wych (2013-08-04 03:33:28)
tonight is the night.
Offline
What happened yesterday? Did you update any packages?
Offline
Whenever I have tmux issues, it is always because I did something silly with the config. You should probably post that as well (pastebin it again if it is super long).
Offline
What happened yesterday? Did you update any packages?
No,I didn't do anything with packages yesterday. It firstly happened after I test a script to kill the last background process every 3 seconds,but that script is no more running.
Whenever I have tmux issues, it is always because I did something silly with the config. You should probably post that as well (pastebin it again if it is super long).
I remove all tmux.conf but it still works like that.
tonight is the night.
Offline
Have you tried to remove all the tmux temporal files?
rm -rf /tmp/tmux*Also, you mention that you started a script that kills the last background process every 3 seconds and that tmux exits after some seconds, could they be related? Maybe the command killing background processes is still running. Try listing all the processes and grep for that command (e.g. ps -ef | grep killing_command).
Offline
Have you tried to remove all the tmux temporal files?
rm -rf /tmp/tmux*Also, you mention that you started a script that kills the last background process every 3 seconds and that tmux exits after some seconds, could they be related? Maybe the command killing background processes is still running. Try listing all the processes and grep for that command (e.g. ps -ef | grep killing_command).
1.I removed /tmp/tmux* but tmux still quited.
2. I have reboot the system already,and ps doesn't find that script running,BTW the script is here:
http://paste.kde.org/p1d479491/
#!/bin/bash
#see if 3306 could be connected
set -x
host="192.168.1.1"
port="3306"
while [ 1 ]
do
ret_val=0
(sleep 3 && kill -9 $(pidof telnet)) &
sleepid=$!
echo "$sleepid"
result=$(telnet "$host" "$port" 2>&1 <<EOF | tr '\n' ' '
quit
EOF
)
echo $result
if echo $result | grep -wq Escape
then
ret_val=0
else
ret_val=1
fi
case $ret_val in
0)
echo "port $port is ok $ret_val" >> telnet.log
;;
1)
echo "port $port is failed $ret_val"
;;
esac
echo "$!"
kill -9 $sleepid
sleep 5
done3. Is there any other thing I can do to trace the problem?
Last edited by wych (2013-07-24 06:42:17)
tonight is the night.
Offline
Try downgrading and post if the problem persists.
Anyway you should open a ticket at the tmux sourceforge page.
Last edited by x33a (2013-07-24 09:08:28)
Offline