Update tsh.c

waitfg updated