I created a function putqf() that calls putq and frees the message if putq fails. It is exported as lis_putqf() but you can use a macro to code it as just plain putqf(). So I changed all the "putq" calls to "putqf" calls.
This is an LiS-ism and is not portable to other STREAMS environments.
-- Dave
At 05:42 PM 6/3/2004, Brian F. G. Bidulock wrote:
Dave,
Just about every module in the package does not check the return value
of putq. They will all need to be changed from:
putq(q, mp);
to
if (!putq(q, mp))
freemsg(mp);
Or did you catch that already.
--brian
