Search Results

Search: Posts Made By: yanglei_fage
1,014
Posted By yanglei_fage
Help not trigger the trap
mainpid=$$
(trap "echo timeout" SIGTERM SIGKILL SIGINT; sleep 5; kill $mainpid) &
watchdogpid=$!

sleep 10 #do something
kill $watchdogpid



I design a timeout function script
I don't...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy