search for: wait_driver_stop

Displaying 1 result from an estimated 1 matches for "wait_driver_stop".

Did you mean: wait_driver_stoped
2010 Jul 22
1
problem with restarting nut
...d upsmon problem is upsdrvctl stop only sends terminating signals but does not wait for driver termination. This makes driver fail to start sometimes when old driver is still running because "device is locked by another process". I've prepared patch cloning stop_driver function to wait_driver_stoped which blocks until timeout or until /proc/<pid> disappears. This function is called after send_all_drivers(stop_driver). See attached patch. If you don't want to make this changes I can modify init script restart function instead to wait until all processes with pid in /var/run/nut...