1. Evan Gates
  2. pcw


Evan Gates  committed fc40378

ignore SIGHUP so we don't die when the window is closed without a proper detach (and survive logouts) and sleep briefly to make sure tmux has actually started up (need a better fix than that)

  • Participants
  • Parent commits be287f8
  • Branches default

Comments (0)

Files changed (1)

File extras/chat.sh

View file
 DELAY=5 # seconds to wait when we get a "w"
+trap "" HUP
 if ! tmux -L "$TITLE" list-sessions | grep -q "^$TITLE"; then
 	tmux -L "$TITLE" new-session -d -s "$TITLE"
+	sleep .1
 				echo "FAILED: timeout"
-			echo "$cmd" > "$PREFIX/$serv/$fifo" # another possible problem point, if fifo somehow doesn't exist now
+			echo "$cmd" > "$PREFIX/$serv/$fifo"
 			echo "OK"
 		done >> "$PREFIX/$serv/log" 2>&1 & # background so we can start ii