commit | 0646b3caf2716e2305094132665a7eb02f7c143d | [log] [download] |
---|---|---|
author | Tiago Cunha <tcunha@gmx.com> | Mon Apr 12 21:45:18 2010 +0000 |
committer | Tiago Cunha <tcunha@gmx.com> | Mon Apr 12 21:45:18 2010 +0000 |
tree | d014b260cc2231b3def6274a1b5395ae06cac9c7 | |
parent | b2e752b3842ffeb21cd4a8b80bee673d43e88695 [diff] |
Sync OpenBSD patchset 680: Remove XXX comment and just close received fd if calloc() fails. If this happens the imsg may no longer be usable as there may be queued messages, but this is a) already the case with the code now, and b) would be the case if recvmsg() fails anyway, so we can document that -1 from imsg_read() invalidates the struct imsgbuf. discussed with and ok eric