X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 72AF6DC0977 for ; Wed, 9 Mar 2016 04:23:06 +0000 (UTC) Received: from mail-lb0-f194.google.com (mail-lb0-f194.google.com [209.85.217.194]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 099CDDC0082 for ; Wed, 9 Mar 2016 04:23:05 +0000 (UTC) Received: by mail-lb0-f194.google.com with SMTP id bc4so3772090lbc.0 for ; Tue, 08 Mar 2016 20:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fo7Ff4SlXUd8pqPr9I50yMfVehtuOHvXlEYlmS5gHbM=; b=sjsWB2xmHjB3C6Qf1s9A008yIdcyS5Dv4Cr1N8FbJsykx6hDjHq/0dYq+fjudixJ+b Bi/GisUUmzqsqipBUUOsjvW25R/1XBqiGUz9iKdvc6bPWe5RRmf8+kT0XE45BZ1VyQRT OuersPaCNXhdiOX3rG6IP5fFbMpkVo6Uw5MFtCwi6FSObvV1qi3SS/JViZQQYs8i3tb6 AnAnT1P254ZByIJcZGVy1xOVl94dvbI4fN25s76ZWUW9L3Vc/DFA069A75q5XVUqaNOv qPmxWJkKtyY3jATsnz8mZpKbStPlky3OZegyRweKTFsnAeDmgEtzK4Um/g28+CmA8f8y 76dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=fo7Ff4SlXUd8pqPr9I50yMfVehtuOHvXlEYlmS5gHbM=; b=kDk8EhZOuz5Fdn+jW+PKlgi3vyZbVqt+tc/QY5TpQ8lHs2F3kmGE7cQ867o3r5HeEp 151TVxME1TPjJ/CO8Ho5AIRdwSFrQfSEPGmia2PkWwYQ3Ucs4ph+1SfiVSjz6eVkDmMN +duI7QIW1VCdLFYr05Zi1uz6QK0ib2QiJlsEIoLS2V9jdtRutMbDY+xeD0goSeEwwpxn vpqqJTGL0jLU8pQvRZ4jsw9sh5iNlFf/7qZNI7gT8dpelZDxKW6MXnl7bB41nCA5GLax 4uG3YWuWM/q7AmuHlTe0fktpBzgFazaE+qgx6OcA83PJmhP5JwF23sYFwxVNs3fkecjX +j9g== X-Gm-Message-State: AD7BkJK0wjHXMxhNFv+c6tIGC0BnmfE82gnAPq2obBsTRzO2qvYc8iZqEnQ0WJ2y5hm3Yw== X-Received: by 10.112.182.42 with SMTP id eb10mr8779527lbc.132.1457420735149; Mon, 07 Mar 2016 23:05:35 -0800 (PST) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id wj2sm234311lbb.5.2016.03.07.23.05.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Mar 2016 23:05:34 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Tue, 8 Mar 2016 09:05:29 +0200 From: Timo Teras To: =?UTF-8?B?U8O2cmVu?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH v2 1/2] testing/nldev: new aport Message-ID: <20160308090529.3905956e@vostro.util.wtbts.net> In-Reply-To: <1456783120-4135-1-git-send-email-soeren+git@soeren-tempel.net> References: <1456783120-4135-1-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP Looks mostly good. But... On Mon, 29 Feb 2016 22:58:39 +0100 S=C3=B6ren Tempel wrote: > +start_pre() { > + if [ -e /proc/self/fd ]; then > + rm -f /dev/fd 2>/dev/null > + ln -sf /proc/self/fd /dev/fd > + fi > +} This looks risky. When restarting this may make /dev/fd unavailable temporarily and break quite a bit of stuff. Why is this here in the first place? If necessary, perhaps use readlink to verify if it needs recreation? And is the 'rm' needed, ln -snf should be able to replace any entry. Thanks, Timo --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---