[BACK]Return to calendar.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / calendar

Diff for /src/usr.bin/calendar/calendar.c between version 1.24 and 1.25

version 1.24, 2005/08/09 12:32:58 version 1.25, 2005/11/16 16:45:11
Line 232 
Line 232 
                                 warnx("uid %u did not finish in time", pw->pw_uid);                                  warnx("uid %u did not finish in time", pw->pw_uid);
                         }                          }
                         if (time(NULL) - t >= SECSPERDAY)                          if (time(NULL) - t >= SECSPERDAY)
                                 errx(2, "'calendar -a' took more than a day; stopped at uid %u",                                  errx(2, "'calendar -a' took more than a day; "
                                       "stopped at uid %u",
                                     pw->pw_uid);                                      pw->pw_uid);
                 }                  }
                 for (;;) {                  for (;;) {
Line 242 
Line 243 
                         runningkids--;                          runningkids--;
                 }                  }
                 if (runningkids)                  if (runningkids)
                         warnx(                          warnx("%d child processes still running when "
 "%d child processes still running when 'calendar -a' finished", runningkids);                              "'calendar -a' finished", runningkids);
         }          } else if ((caldir = getenv("CALENDAR_DIR")) != NULL) {
         else if ((caldir = getenv("CALENDAR_DIR")) != NULL) {  
                 if(!chdir(caldir))                  if(!chdir(caldir))
                         cal();                          cal();
         } else          } else

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25