move declaration of detach_from_console away from here to kcm_locl.h
Don't test HAVE_DAEMON since roken supplies it. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15212 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -37,10 +37,6 @@ RCSID("$Id$"); | |||||||
|  |  | ||||||
| sig_atomic_t exit_flag = 0; | sig_atomic_t exit_flag = 0; | ||||||
|  |  | ||||||
| #ifdef HAVE_DAEMON |  | ||||||
| extern int detach_from_console; |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| krb5_context kcm_context = NULL; | krb5_context kcm_context = NULL; | ||||||
|  |  | ||||||
| static RETSIGTYPE | static RETSIGTYPE | ||||||
| @@ -98,10 +94,8 @@ main(int argc, char **argv) | |||||||
|     signal(SIGUSR1, sigusr1); |     signal(SIGUSR1, sigusr1); | ||||||
|     signal(SIGUSR2, sigusr2); |     signal(SIGUSR2, sigusr2); | ||||||
| #endif | #endif | ||||||
| #ifdef HAVE_DAEMON |  | ||||||
|     if (detach_from_console) |     if (detach_from_console) | ||||||
| 	daemon(0, 0); | 	daemon(0, 0); | ||||||
| #endif |  | ||||||
|     pidfile(NULL); |     pidfile(NULL); | ||||||
|     kcm_loop(); |     kcm_loop(); | ||||||
|     krb5_free_context(kcm_context); |     krb5_free_context(kcm_context); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand