"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ircd.c" between
ircd-hybrid-8.2.27.tgz and ircd-hybrid-8.2.28.tgz

About: IRCD-Hybrid is a Internet Relay Chat server.

ircd.c  (ircd-hybrid-8.2.27.tgz):ircd.c  (ircd-hybrid-8.2.28.tgz)
skipping to change at line 24 skipping to change at line 24
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA * USA
*/ */
/*! \file ircd.c /*! \file ircd.c
* \brief Starts up and runs the ircd. * \brief Starts up and runs the ircd.
* \version $Id: ircd.c 9109 2020-01-04 15:16:39Z michael $ * \version $Id: ircd.c 9227 2020-01-26 14:17:35Z michael $
*/ */
#include "stdinc.h" #include "stdinc.h"
#include "user.h" #include "user.h"
#include "list.h" #include "list.h"
#include "ircd.h" #include "ircd.h"
#include "channel.h" #include "channel.h"
#include "channel_mode.h" #include "channel_mode.h"
#include "client.h" #include "client.h"
#include "event.h" #include "event.h"
skipping to change at line 53 skipping to change at line 53
#include "parse.h" #include "parse.h"
#include "res.h" #include "res.h"
#include "restart.h" #include "restart.h"
#include "rng_mt.h" #include "rng_mt.h"
#include "s_bsd.h" #include "s_bsd.h"
#include "log.h" #include "log.h"
#include "server.h" #include "server.h"
#include "server_capab.h" #include "server_capab.h"
#include "send.h" #include "send.h"
#include "modules.h" #include "modules.h"
#include "memory.h"
#include "ircd_getopt.h" #include "ircd_getopt.h"
#include "conf_db.h" #include "conf_db.h"
#include "conf_class.h" #include "conf_class.h"
#include "ipcache.h" #include "ipcache.h"
#include "isupport.h" #include "isupport.h"
#include "patchlevel.h" #include "patchlevel.h"
#include "serno.h" #include "serno.h"
struct SetOptions GlobalSetOptions; /* /quote set variables */ struct SetOptions GlobalSetOptions; /* /quote set variables */
struct Counter Count; struct Counter Count;
skipping to change at line 319 skipping to change at line 318
{ {
printf("ircd: version %s(%s)\n", PATCHLEVEL, SERIALNUM); printf("ircd: version %s(%s)\n", PATCHLEVEL, SERIALNUM);
printf("ircd: pid %d\n", pid); printf("ircd: pid %d\n", pid);
printf("ircd: running in %s mode from %s\n", !server_state.foreground ? "backg round" printf("ircd: running in %s mode from %s\n", !server_state.foreground ? "backg round"
: "foreground", ConfigGeneral.dpath); : "foreground", ConfigGeneral.dpath);
} }
static void static void
make_daemon(void) make_daemon(void)
{ {
int pid; int pid = fork();
if ((pid = fork()) < 0) if (pid < 0)
{ {
perror("fork"); perror("fork");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
else if (pid > 0) else if (pid > 0)
{ {
print_startup(pid); print_startup(pid);
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)