From c478e3fda9b244fe49da78e6a64021b40a792688 Mon Sep 17 00:00:00 2001 From: Patrik Nyblom Date: Fri, 14 Jan 2011 08:52:59 +0100 Subject: Ignore permission error when implicitly setting SO_PRIORITY --- erts/emulator/drivers/common/inet_drv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'erts/emulator') diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index 818bc6334e..49da0ef118 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 1997-2010. All Rights Reserved. + * Copyright Ericsson AB 1997-2011. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in @@ -5095,6 +5095,9 @@ static int setopt_prio_tos_trick SO_PRIORITY, (char *) &tmp_ival_prio, tmp_arg_sz_prio); + if (res != 0 && sock_errno() == EPERM) { + res = 0; + } } } } -- cgit v1.2.3