HandleInvalid sends a placeholder message to LXC. LXC will notice the short write and send a default message to the kernel thereby avoiding a 30s block.
(fd int, siov *Iovec)
| 1261 | // HandleInvalid sends a placeholder message to LXC. LXC will notice the short write |
| 1262 | // and send a default message to the kernel thereby avoiding a 30s block. |
| 1263 | func (srv *Server) HandleInvalid(fd int, siov *Iovec) { |
| 1264 | msghdr := C.struct_msghdr{} |
| 1265 | C.sendmsg(C.int(fd), &msghdr, C.MSG_NOSIGNAL) |
| 1266 | siov.PutSeccompIovec() |
| 1267 | } |
| 1268 | |
| 1269 | // MknodArgs arguments for mknod. |
| 1270 | type MknodArgs struct { |
no test coverage detected