[lxc-devel] [PATCH] unnamed semaphores should be destroyed not closed
Serge Hallyn
serge.hallyn at ubuntu.com
Mon Oct 28 20:05:46 UTC 2013
Quoting S.Çağlar Onur (caglar at 10ur.org):
> Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> ---
> src/lxc/lxclock.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lxc/lxclock.c b/src/lxc/lxclock.c
> index 020bd34..d403bcc 100644
> --- a/src/lxc/lxclock.c
> +++ b/src/lxc/lxclock.c
> @@ -240,7 +240,7 @@ void lxc_putlock(struct lxc_lock *l)
> switch(l->type) {
> case LXC_LOCK_ANON_SEM:
> if (l->u.sem) {
> - sem_close(l->u.sem);
> + sem_destroy(l->u.sem);
> free(l->u.sem);
> l->u.sem = NULL;
> }
> --
> 1.8.3.2
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel
More information about the lxc-devel
mailing list