use global var to store EV handle, and undef in submit process, to avoid signal hanlder not work
cancel submit if ppid=1.