- die "umask" des Servers wird nun auf 077 gesetzt;

- Hauptschleife geaendert.
This commit is contained in:
Alexander Barton 2002-06-02 17:01:21 +00:00
parent adc1eedda3
commit 9ec32d15ab
1 changed files with 5 additions and 6 deletions

View File

@ -9,7 +9,7 @@
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
* *
* $Id: ngircd.c,v 1.47 2002/05/30 16:52:21 alex Exp $ * $Id: ngircd.c,v 1.48 2002/06/02 17:01:21 alex Exp $
* *
* ngircd.c: Hier beginnt alles ;-) * ngircd.c: Hier beginnt alles ;-)
*/ */
@ -26,6 +26,7 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <time.h> #include <time.h>
@ -60,6 +61,8 @@ main( int argc, const char *argv[] )
INT32 pid, n; INT32 pid, n;
INT i; INT i;
umask( 0077 );
NGIRCd_Restart = FALSE; NGIRCd_Restart = FALSE;
NGIRCd_Quit = FALSE; NGIRCd_Quit = FALSE;
NGIRCd_NoDaemon = FALSE; NGIRCd_NoDaemon = FALSE;
@ -283,11 +286,7 @@ main( int argc, const char *argv[] )
Initialize_Listen_Ports( ); Initialize_Listen_Ports( );
/* Hauptschleife */ /* Hauptschleife */
while( TRUE ) Conn_Handler( );
{
if( NGIRCd_Quit || NGIRCd_Restart ) break;
Conn_Handler( 5 );
}
/* Alles abmelden */ /* Alles abmelden */
Conn_Exit( ); Conn_Exit( );