// Test for blocking accept. // Accept a connection. +.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500 +.0 bind(500, ..., ...) = 0 +.0 listen(500, 1) = 0 +.2 accept(500, ..., ...) = 0 // Receive SYN packet. +.2 TCP < S seq 0(0) win 65535 // Send SYN-ACK packet. +.0 TCP > S. seq 0(0) ack 1 win 65535 // Receive ACK on SYN-ACK packet. +.2 TCP < . seq 1(0) ack 1 win 65535 // Succeed to accept connection. +.0 wait(500, ...) = 0