<p>Is it possible to unlisten on a socket after you have called listen(fd, backlog)? </p>

<p>Edit: My mistake for not making myself clear. I'd like to be able to temporarily unlisten on the socket. Calling close() will leave the socket in the M2LS state and prevent me from reopening it (or worse, some nefarious program could bind to that socket)</p>

<p>Temporarily unlistening would be a way (maybe not the best way) to signal to an upstream load balancer that this app couldn't accept any more requests for the moment</p>

Close it. As I recall;
```
```
close(fd);
```
```