ptrace in production systems

ptrace in production systems

Shachar Shemesh shachar at shemesh.biz
Tue Feb 3 11:43:39 IST 2009


Oron Peled wrote:
> Why not have it restart itself?
> 	execve(argv[0], argv, yada, yada)
>   
if( restart ) {
    execv( argv[0], argv )
    syslog( LOG_CRIT, "Configuration reload failed: %m" )
}

at the end of main.
> from some signal handler?
Oooh, no. The entire idea is to allow an orderly shutdown.
>  Than the "controlling" daemon would send it
> (e.g: sighup) when it want this to happen and the agent would restart itself.
>   
Yes. This is what I'll do. Thanks!

Shachar



More information about the Linux-il mailing list