From: Thierry Parmentelat Date: Wed, 5 Dec 2007 12:46:44 +0000 (+0000) Subject: uses /proc/self/fd rather than /dev/fd for native mode X-Git-Tag: myplc-4.0-15~17 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=3778bf0d594f9f5816f364ba7ae3f76bfd5a7c11;p=myplc.git uses /proc/self/fd rather than /dev/fd for native mode --- 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