From 3778bf0d594f9f5816f364ba7ae3f76bfd5a7c11 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 5 Dec 2007 12:46:44 +0000 Subject: [PATCH] uses /proc/self/fd rather than /dev/fd for native mode --- plc.d/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plc.d/functions b/plc.d/functions index 987a99d..50f0847 100644 --- a/plc.d/functions +++ b/plc.d/functions @@ -111,5 +111,5 @@ upper () # Make copies of stdout and stderr. The plc initscript redirects # stdout and stderr to a logfile if -v is not specified. -[ ! -e /dev/fd/3 ] && exec 3>&1 -[ ! -e /dev/fd/4 ] && exec 4>&2 +[ ! -e /proc/self/fd/3 ] && exec 3>&1 +[ ! -e /proc/self/fd/4 ] && exec 4>&2 -- 2.47.0