From 5808a06d6fe2181912757df4cf809d53584f1592 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sun, 8 Nov 2015 10:29:46 +0100 Subject: [PATCH] 615: conn TCP status --- psutil/_psutil_openbsd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/psutil/_psutil_openbsd.c b/psutil/_psutil_openbsd.c index 02e48ee00..a5054da5c 100644 --- a/psutil/_psutil_openbsd.c +++ b/psutil/_psutil_openbsd.c @@ -912,10 +912,7 @@ psutil_proc_connections(PyObject *self, PyObject *args) { // fill status state = PSUTIL_CONN_NONE; if (kif->so_type == SOCK_STREAM) { - /* need to read so_pcb - state = kif->so_state; - printf("state=%d\n",state); - */ + state = kif->t_state; } // construct python tuple/list