Changeset 279 for trunk/src/sh_unix.c


Ignore:
Timestamp:
Apr 30, 2010, 11:55:18 PM (14 years ago)
Author:
katerina
Message:

Fix for tickets #200 to #206 (kernel check, login checks, bugfixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_unix.c

    r265 r279  
    670670    sig_force_check = 1;
    671671#endif
     672#ifdef SIGTTIN
     673  if (mysignal == SIGTTIN)
     674    sig_fresh_trail = 1;
     675#endif
    672676#ifdef SIGABRT
    673677  if (mysignal == SIGABRT)
     
    837841  retry_sigaction(FIL__, __LINE__, SIGTSTP,   &ignact, &oldact);
    838842#endif
    839 #ifdef SIGTTIN
    840   retry_sigaction(FIL__, __LINE__, SIGTTIN,   &ignact, &oldact);
    841 #endif
     843
    842844#if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE)
    843845#ifdef SIGTTOU
     
    847849    retry_sigaction(FIL__, __LINE__, SIGTTOU,   &ignact, &oldact);
    848850#endif
     851#ifdef SIGTTIN
     852  if (goDaemon == 1)
     853    retry_sigaction(FIL__, __LINE__, SIGTTIN,     &act2, &oldact);
     854  else
     855    retry_sigaction(FIL__, __LINE__, SIGTTIN,   &ignact, &oldact);
     856#endif
    849857#else
    850858#ifdef SIGTTOU
    851859  retry_sigaction(FIL__, __LINE__, SIGTTOU,   &ignact, &oldact);
     860#endif
     861#ifdef SIGTTIN
     862  retry_sigaction(FIL__, __LINE__, SIGTTIN,   &ignact, &oldact);
    852863#endif
    853864#endif
     
    31283139  SL_RETURN(0, _("sh_unix_getinfo_attr"));
    31293140}
    3130 #else
    3131 static
    3132 int sh_unix_getinfo_attr (char * name,
    3133                           unsigned long * flags,
    3134                           char * c_attr,
    3135                           int fd, struct stat * buf)
    3136 {
    3137   return 0;
    3138 }
    31393141
    31403142/* defined(__linux__) || defined(HAVE_STAT_FLAGS) */
     
    39053907  theFile->attributes      =    0;
    39063908
     3909#if (defined(__linux__) && (defined(HAVE_LINUX_EXT2_FS_H) || defined(HAVE_EXT2FS_EXT2_FS_H))) || defined(HAVE_STAT_FLAGS)
    39073910  if (theFile->c_mode[0] != 'c' && theFile->c_mode[0] != 'b' &&
    39083911      theFile->c_mode[0] != 'l' )
     
    39103913                         &theFile->attributes, theFile->c_attributes,
    39113914                         fd, &buf);
     3915#endif
    39123916#endif
    39133917
Note: See TracChangeset for help on using the changeset viewer.