#!/usr/bin/perl
## eigsh - jlavoy - Endurance International Group 2015
use strict;
use FindBin;
use lib $FindBin::RealBin . '/lib';
use EIGsh::Shell;
package EIGsh;

$SIG{'INT'} = \&siginthandler;
$SIG{'HUP'} = \&sighuphandler;
$ENV{'SHELL'} = '/bin/sh' if exists $ENV{SHELL};

main();

sub siginthandler {
	# do nothing
}

sub sighuphandler {
	# exit cleanly - this stops from run away zombie processes
	exit();
}

sub main {
	my $eigsh = EIGsh::Shell->new();
	EIGsh::Shell->start($eigsh);
}

