Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2 Second Delay and Print Log Message to Restart Command #320

Merged
merged 1 commit into from
Nov 20, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion code/common/mh_control.pl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ ()
$v_restart_mh->set_info( 'Restarts Misterhouse. This will only work if ' .
'you start with mh/bin/mhl') if !$OS_win;
$v_restart_mh->set_info('Restarts Misterhouse.') if $OS_win;
$v_restart_mh->tie_event('&exit_pgm(1)'); # noloop
$v_restart_mh->tie_event('&restart_mh()'); # noloop

sub restart_mh{
$exit_timer = new Timer;
print_log "MisterHouse will restart in 2 seconds.";
$exit_timer->set(2, '&exit_pgm(1)');
}

# This will be abend.
# Allow for no msg on first time use where this flag is not set yet.
Expand Down