aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-05-19 22:37:57 +0000
committerGuy Harris <guy@alum.mit.edu>2000-05-19 22:37:57 +0000
commit586e1b6fca8da9b031bb99b7010c3c77fbd85045 (patch)
treeb83841220dca20b75c6677d43d40353ab51ca5dc /randpkt.c
parentcd1952d2ecdb3604545458074f7575b64f93e5ee (diff)
Move the closes of the save file FD around:
"capture()" should ensure that it's closed before returning, but it was only getting closed by "wtap_dump_close()" on success, so close the raw FD on failure (no "wtap_dump" stream is opened on failure, so we just close the raw FD); in a "update the display as packets arrive" capture, we should close the FD in the parent as soon as the fork is done, before even testing whether the fork succeeded (and we might as well do the same with the write side of the sync pipe). svn path=/trunk/; revision=1988
Diffstat (limited to 'randpkt.c')
0 files changed, 0 insertions, 0 deletions