Improve for making gtags process sentinel