---

** [tickets:#1470] log: Mutex is not always LOCKED when _hdl functions return**

**Status:** unassigned
**Milestone:** 4.5.2
**Created:** Thu Sep 03, 2015 09:17 AM UTC by Vu Minh Nguyen
**Last Updated:** Thu Sep 03, 2015 09:17 AM UTC
**Owner:** nobody


In every `_hdl` functions @ `lgs_filehdl.c`, they are required to UNLOCK Mutex 
inside the `_hdl` functions and LOCK Mutex when `_hdl` functions return.

But in the functions `path_is_writeable_dir_hdl()` and ` 
write_log_record_hdl()`, the above condition is not always true in some cases. 

Following case is an example:

1. Create a folder with no allowed permissions.
> me@:~/opensaf/opensaf-staging/tools/cluster_sim_uml/repl-opensaf$ ll
d--------- 2 osboxes osboxes  4096 Aug 31 07:51 denied/

2. Change `logRootDirectory` to above folder:
> immcfg -a logRootDirectory="/repl_opensaf/denied" 
> logConfig=1,safApp=safLogService
error - saImmOmCcbApply FAILED: SA_AIS_ERR_FAILED_OPERATION (21)
OI reports: pathName: /repl_opensaf/denied is NOT accepted


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to