Fix for myplc-native:
[myplc.git] / plc.d / functions
index d4cb0a5..50f0847 100644 (file)
@@ -5,7 +5,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: functions 545 2007-06-18 10:56:31Z thierry $
+# $Id$
 #
 
 export PATH=/sbin:/bin:/usr/bin:/usr/sbin
@@ -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