atefsaeed2010 / datacard

Automatically exported from code.google.com/p/datacard
Other
0 stars 1 forks source link

Improove of device locking #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
core reload now 
is dirty, and not call device cleanup.
Also exec() new instance of asterisk, and old asterisk pid still alive.
This mean
1) lock files still exist
2) lock files contain valid pid

and user cause error '...already used by pid ...'

Should improove device locking by
1) Add CLOSE ON EXEC flag for fd to devices
2) add to lock file also fd number and check with port_status() after pid check

Original issue reported on code.google.com by bg_...@mail.ru on 12 Jan 2011 at 8:35

GoogleCodeExporter commented 9 years ago
done in r169

Original comment by bg_...@mail.ru on 17 Jan 2011 at 7:32