summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2013-03-02 00:45:40 +0000
committererdgeist <>2013-03-02 00:45:40 +0000
commit0cbc47bfd9a52d6e2d0dd1ae245305fb59f61760 (patch)
treee017c58d779571257c601a06b9ba5c3ec8d62eec
parent1581102195ece168cc6b3c862ec3cc19fbb8f906 (diff)
Formatting
-rw-r--r--jaildaemon.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/jaildaemon.c b/jaildaemon.c
index ed36531..797f547 100644
--- a/jaildaemon.c
+++ b/jaildaemon.c
@@ -41,11 +41,9 @@ static void exerr( char * message );
41static void warn( char * message ); 41static void warn( char * message );
42static void usage( char * command ); 42static void usage( char * command );
43 43
44/* This is the handler installed in the jailed process. 44/* This is the handler installed in the jailed process. It will exit with the
45 It will exit with the proper exit code to make the 45 proper exit code to make the host system daemon recognize the process has
46 host system daemon recognize the process has 46 deliberately killed itself and was not just shutdown with the jail */
47 deliberately killed itself and was not just shutdown
48 with the jail */
49static void signal_handler( int signal ) { 47static void signal_handler( int signal ) {
50 if( signal == SIGHUP ) 48 if( signal == SIGHUP )
51 _exit( MAGIC_EXIT_CODE ); 49 _exit( MAGIC_EXIT_CODE );
@@ -459,7 +457,7 @@ int main( int argc, char **argv ) {
459 kevent( kq, &ke, 1, NULL, 0, NULL ); 457 kevent( kq, &ke, 1, NULL, 0, NULL );
460 458
461 /* If daemon was started with some initial script, fire it now 459 /* If daemon was started with some initial script, fire it now
462 -- this leaks some information in the command line to all jails an 460 -- this leaks some information in the command line to all jails and
463 thus is disabled 461 thus is disabled
464 if( o_command ) { 462 if( o_command ) {
465 daemon_task task; 463 daemon_task task;