summaryrefslogtreecommitdiff
path: root/sys/ufs/lfs/lfs_segment.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-01 23:09:10 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-01 23:09:10 +0000
commitb0fe3d62ce222a08711e8e5b1baac92a3a38274f (patch)
tree32de7a4f9362cf82034eac9437c4cf7d6cc00ab3 /sys/ufs/lfs/lfs_segment.c
parent6cabb1abe96ce74073c96812753fe62daa7f8a68 (diff)
now that imsg_get uses bigger buffers, one read call can put more than one
imsg into the buffer. since imsg_get by definition only returns one imsg we missed the next imsg(s) until the next poll event on the socket in question, building up a queue on that socket. didn't show up as a problem yet... factor out imsg_read, which reads into the buffer. imsg_get now entirely operates on the buffers and does not read(2) itself. make all callers cope by calling imsg_read on poll events and calling imsg_get in a loop until all imsgs are processed.
Diffstat (limited to 'sys/ufs/lfs/lfs_segment.c')
0 files changed, 0 insertions, 0 deletions