aboutsummaryrefslogtreecommitdiffstats
path: root/globals.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-30 06:11:51 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-30 06:11:51 +0000
commit062cb007f187984acdf6e9ba3f9ee4b647deadc2 (patch)
treeb548d7d18bcd1861e41f94e36c6a8cf6dac51e50 /globals.h
parent7caca1db1db7f6d70578f89c76eca88194dbbbaa (diff)
If we're given the "-k" flag, don't start the capture until after we've:
popped up the top-level window (so that it looks like a capture started from "Capture/Start"); initialized the colors (so that we don't dump core when reading in the capture file); popped up any message box for failure to read the preferences file. This means we start the capture in "main()", rather than in the realize callback for the main window, so get rid of that callback. If we're a child process that's just capturing to a file for our parent to read, however, we shouldn't pop up the top-level window, because that's our parent's job; when running that child, set its "argv[0]" to a special name, so that 1) it shows up in a "ps" with a special name; 2) we don't have to invent Yet Another Flag to say "you're the child". (We may want to use the name to turn on *all* behaviors that the capture child, and only the capture child, should exhibit.) If "-w" and "-k" were both specified, attempt to open the file specified by "-w" and, if that succeeds, set "cf.save_file_fd" to refer to it, so that "-w" plus "-k" works again, rather than popping up a "The file to which the capture would be saved ... could not be opened: Bad file descriptor." message box. svn path=/trunk/; revision=739
Diffstat (limited to 'globals.h')
0 files changed, 0 insertions, 0 deletions