Changeset 4667 for zzuf


Ignore:
Timestamp:
Oct 5, 2010, 2:57:03 PM (9 years ago)
Author:
Sam Hocevar
Message:

Make it easier to dynamically allocate the debug filedescriptor later.

Location:
zzuf/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/common/common.h

    r4253 r4667  
    3434#define DEFAULT_MEM 1024
    3535
    36 /* We use file descriptor 17 as the debug channel */
     36/* We use file descriptor 17 as the debug channel on Unix */
    3737#define DEBUG_FILENO 17
    38 #define DEBUG_FILENO_STR "17"
    3938
    4039struct fuzz
  • zzuf/trunk/src/myfork.c

    r4665 r4667  
    220220
    221221    /* Set environment variables */
     222    sprintf(buf, "%i", DEBUG_FILENO);
     223    setenv("ZZUF_DEBUGFD", buf, 1);
    222224    sprintf(buf, "%i", opts->seed);
    223225    setenv("ZZUF_SEED", buf, 1);
  • zzuf/trunk/src/zzuf.c

    r4666 r4667  
    467467
    468468        setenv("ZZUF_DEBUG", debug ? debug > 1 ? "2" : "1" : "0", 1);
    469         setenv("ZZUF_DEBUGFD", DEBUG_FILENO_STR, 1);
    470469
    471470        if(opts->fuzzing)
Note: See TracChangeset for help on using the changeset viewer.