Project

General

Profile

« Previous | Next » 

Revision 803e5926

Added by Scott Ullrich about 19 years ago

Tighten the console detection code checks.

View differences:

etc/rc.banner
37 37
	if(file_exists("/var/run/lastlogin")) {
38 38
		$last_login_time = file_get_contents("{$g['varrun_path']}/lastlogin");
39 39
		$time_now = time();
40
		if($time_now - $last_login_time < 20) {
40
		$time_diff = $time_now - $last_login_time;
41
		if($time_diff < 25) {
41 42
			log_error("Console respawn bug detected.  CTRL-C to exit.");
43
			echo "Console respawn bug detected.  CTRL-C to exit. {$time_diff}";
42 44
			sleep(6600);
43 45
		}
44 46
	}

Also available in: Unified diff