Ignore:
Timestamp:
Jan 25, 2007, 11:34:28 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Carry DEBUG_FILENO in the ZZUF_DEBUG environment variable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/zzuf.c

    r1710 r1718  
    6565#   define SIGKILL 9
    6666#endif
     67
     68/* We use file descriptor 17 as the debug channel */
     69#define DEBUG_FILENO 17
     70#define DEBUG_FILENO_STR "17"
    6771
    6872static void loop_stdin(struct opts *);
     
    200204            break;
    201205        case 'd': /* --debug */
    202             setenv("ZZUF_DEBUG", "1", 1);
     206            setenv("ZZUF_DEBUG", DEBUG_FILENO_STR, 1);
    203207            break;
    204208        case 'D': /* --delay */
Note: See TracChangeset for help on using the changeset viewer.