Preserve RLIMIT_CORE hard limit, and restore soft limit before exec

Closes #196.
This commit is contained in:
Keegan McAllister
2012-04-16 19:34:43 -04:00
parent 1b21e004e7
commit a289a2319e
3 changed files with 22 additions and 3 deletions
+2
View File
@@ -401,6 +401,8 @@ int run_server( const char *desired_ip, const char *desired_port,
print_motd();
}
Crypto::reenable_dumping_core();
if ( execvp( command_path.c_str(), command_argv ) < 0 ) {
perror( "execvp" );
_exit( 1 );