I'm running a Python application that spawns multiple processes. It uses port 56008 to listen for client requests. Sometimes after closing it the port it used is still "in use". There are still some python processes that appear to be running but trying to kill them using
kill doesn't seem to have any affect.
How can I free it up manually so I can restart my application?
ps -C python
PID TTY TIME CMD 30118 pts/1 00:00:00 python 30131 pts/1 00:00:00 python
*There are about 30 lines in total of the format
[pid] pts/1 00:00:00 python
netstat -tulp (relevant line only):
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:56008 *:* LISTEN -