^ Great points, Salad. I was curious what would happen if you set the TIMEOUT to 1. While on the topic, if TIMEOUT is set to 0 (or not set at all) does it register that as an unlimited amount of time?
I use ssh-add to add my SSH keys to the SSH agent. By default, it adds them indefinitely. There's a command-line option to specify a timeout, but is there a configuration file option which will specify the default timeout?
What I want is to be able to run ssh-add without any command-line parameters and have it default to a given amount of time for a timeout (as if I had called ssh-add -t 1h).
I'm using Ss galaxy note 10.1 with 4.1.2 os. My device has an annoying problem. Each time a notifications pop out, it wake my tablet up from timeout status (of course) and, it keep the screen wake for hours without switching to timeout mode until the battery running out. Is there anybody has a solution for this issue? I keep my device timeout in 2 mins in settings.
I want to lock a mutex but fail if a timeout expires. Also I don't want to wait much more after the timeout.
I know what you are thinking. pthread_mutex_timedlock. But if the system clock is changed while it is blocking (e.g. if someone runs date --set during the timeout) it can wait for years after (currently up to 44) the timeout should have expired.
Got a large C++ function in Linux that calls a whole lot of other functions, making up an algorithm. At various points given certain bad inputs, the algorithm can get "stuck" and go on forever. Adding a timeout seems appropriate as all potential "stuck" points cannot be predicted.
Here, timeout 3 means 3 seconds.
But, what is the significance for timeout value?
Is it the time taken to connect to DNS server? OR
Is it the time allowed to wait for DNS server to return IP address value for a URL?
I am currently using SolusOS and it is really a great distro in my opinion. However, the default grub timeout of SolusOS is too short for my need, only 5 seconds. And since I have 3 other Linux distros and Windows 7 installed on my laptop, I need a longer grub timeout for me to select the operating system I want to use.