* tentative merge of onelab myplc
[myplc.git] / plc.d / mail
index fe31b25..2b3eade 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: mail,v 1.3 2006/06/23 20:29:22 mlhuang Exp $
+# $Id: mail 554 2007-06-19 15:11:22Z thierry $
 #
 
 # Source function library and configuration
@@ -30,7 +30,7 @@ case "$1" in
        # without a warning, so that the API can send out mail.
        echo "apache" >/etc/mail/trusted-users
 
-       service sendmail start
+       (exec 3>&- 4>&- ; service sendmail start)
        check
 
        result "$MESSAGE"