Re: [ovs-discuss] socket handle leak when pkill/kill -9 ovsdb-server/ovs-vswitchd

2017-05-31 Thread Ben Pfaff
On Wed, May 31, 2017 at 03:26:04AM +, fukaige wrote:
> I am using ovs-2.5.2 and find there may be socket handle leak when kill 
> ovsdb-server/ovs-vswitchd thread.
> When I use “pkill -9 ovs-vswitchd” kill ovs-vswitchd thread and restart it, 
> the socket file “ovs-vswitchd.12237.ctl” isn’t closed.

There's no way for a process to delete files when it's killed with
signal 9.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] socket handle leak when pkill/kill -9 ovsdb-server/ovs-vswitchd

2017-05-30 Thread fukaige
I am using ovs-2.5.2 and find there may be socket handle leak when kill 
ovsdb-server/ovs-vswitchd thread.
When I use “pkill -9 ovs-vswitchd” kill ovs-vswitchd thread and restart it, the 
socket file “ovs-vswitchd.12237.ctl” isn’t closed.


LOG:
linux-tpHwIF:~ # ll /var/run/openvswitch/
total 8
srwxr-x--- 1 root root 0 May 31 19:00 db.sock
srwxr-x--- 1 root root 0 May 31 19:00 ovsdb-server.12197.ctl
-rw-r- 1 root root 6 May 31 19:00 ovsdb-server.pid
srwxr-x--- 1 root root 0 May 31 19:00 ovs-vswitchd.12237.ctl
-rw-r- 1 root root 6 May 31 19:00 ovs-vswitchd.pid
linux-tpHwIF:~ # pkill -9 ovs-vswitchd
linux-tpHwIF:~ # bash /usr/share/openvswitch/scripts/ovs-ctl restart
Exiting ovsdb-server (12197)   [  OK  ]
Starting ovsdb-server  [  OK  ]
system ID not configured, please use --system-id ... failed!
Configuring Open vSwitch system IDs[  OK  ]
Starting ovs-vswitchd  [  OK  ]
Enabling remote OVSDB managers [  OK  ]
linux-tpHwIF:~ # ll /var/run/openvswitch/
total 8
srwxr-x--- 1 root root 0 May 31 19:09 db.sock
srwxr-x--- 1 root root 0 May 31 19:09 ovsdb-server.6712.ctl
-rw-r- 1 root root 5 May 31 19:09 ovsdb-server.pid
srwxr-x--- 1 root root 0 May 31 19:00 ovs-vswitchd.12237.ctl
srwxr-x--- 1 root root 0 May 31 19:09 ovs-vswitchd.6724.ctl
-rw-r- 1 root root 5 May 31 19:09 ovs-vswitchd.pid
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss