Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 26. október 2026

Rozdiely pre ep/src/main.c medzi verziami 1.27 a 1.28

verzia 1.27, 2002/05/27 20:04:20 verzia 1.28, 2002/05/29 15:12:55
Riadok 21 
Riadok 21 
  * ep - extended pipelining   * ep - extended pipelining
  * coding start date: 11.11.2000   * coding start date: 11.11.2000
  * authors: Ondrej Jombik   * authors: Ondrej Jombik
  *          Lubomir Host  *          Lubomir Host
  *                      Martin Karas   *                      Martin Karas
  * Copyright (c) 2000-2002 Platon software development group   * Copyright (c) 2000-2002 Platon software development group
  * license: GNU General Public License   * license: GNU General Public License
  */   */
   
   /* Notes:
   
   * Now signal handler for every signal is installed. If SIG_CHLD detected, gloal
   variable sig_chld is set. This change is printed out in main() in debug mode.
   No other usage of sig_chld variable is currently used.
   
   * When write() syscall fails (that means returning -1 or 0), particular
   proclinks to failed fd are removed and fd is closed.
   
    */
   
 #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
 #  include "config.h"  #  include "config.h"
 #endif  #endif
Riadok 59 
Riadok 70 
 #if HAVE_SYS_WAIT_H  #if HAVE_SYS_WAIT_H
 #  include <sys/wait.h>  #  include <sys/wait.h>
 #endif  #endif
   
 #ifndef WEXITSTATUS  #ifndef WEXITSTATUS
 #  define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)  #  define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 #endif  #endif
Riadok 221  main(argc, argv)
Riadok 231  main(argc, argv)
         /*          /*
          * Instaling signal handler.           * Instaling signal handler.
          */           */
         /* sigserv_init(ptbl); */          sigserv_init(ptbl);
   
 #if DEBUG  #if DEBUG
         /*          /*
Riadok 263  main(argc, argv)
Riadok 273  main(argc, argv)
                         tv.tv_usec = 1000;                          tv.tv_usec = 1000;
                 }                  }
   
   #if DEBUG
                   if (sig_chld) {
                           msg_debug_print("main(): SIG_CHLD detected\n");
                           sig_chld = 0;
                   }
   #endif
   
                 ret = select(FD_SETSIZE, &rfds, &wfds, &efds, pid == 1 ? &tv : NULL);                  ret = select(FD_SETSIZE, &rfds, &wfds, &efds, pid == 1 ? &tv : NULL);
   
                 if (ret < 0) {                  if (ret < 0) {
Riadok 277  main(argc, argv)
Riadok 294  main(argc, argv)
   
                         sleep(1);                          sleep(1);
                 }                  }
   #if DEBUG
                   /*if (FD_ISSET(0, &rfds) && getchar() == 12)
                           proctable_print(ptbl);*/
   #endif
 #if MENU  #if MENU
                 if (FD_ISSET(0, &rfds)) {                  if (FD_ISSET(0, &rfds)) {
                         int c;                          int c;

Legend:
Odstranené z verzie1.27  
zmenené riadky
  Pridané vo verzii1.28

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok