fedora-sysv / initscripts

📜 Scripts to bring up network interfaces and legacy utilities in Fedora.
GNU General Public License v2.0
46 stars 51 forks source link

remove rename_device_lock when process does not exist #359

Closed wangxp006 closed 3 years ago

wangxp006 commented 3 years ago

if rename_device is killed during fopen period in take_lock ,LOCKFILE will not be remove in sighandler. Excute rename_device again, LOCKFILE is exist ,but the process with pid in LOCKFILE is not running, take_lock will never return.

jamacku commented 3 years ago

@wangxp006 Thank you for patch.