mirror of https://github.com/redis/redis.git
				
				
				
			Correctly set the SIGARLM timer for the software watchdog.
This commit is contained in:
		
							parent
							
								
									39bd025c29
								
							
						
					
					
						commit
						a354da9acd
					
				| 
						 | 
					@ -692,7 +692,7 @@ void watchdogScheduleSignal(int period) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Will stop the timer if period is 0. */
 | 
					    /* Will stop the timer if period is 0. */
 | 
				
			||||||
    it.it_value.tv_sec = period/1000;
 | 
					    it.it_value.tv_sec = period/1000;
 | 
				
			||||||
    it.it_value.tv_usec = period%1000;
 | 
					    it.it_value.tv_usec = (period%1000)*1000;
 | 
				
			||||||
    /* Don't automatically restart. */
 | 
					    /* Don't automatically restart. */
 | 
				
			||||||
    it.it_interval.tv_sec = 0;
 | 
					    it.it_interval.tv_sec = 0;
 | 
				
			||||||
    it.it_interval.tv_usec = 0;
 | 
					    it.it_interval.tv_usec = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue