1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Make sure pid file creation doesn't complain if it can't create the file.

This removes a warning message when suspending is called by a non-root
user.
This commit is contained in:
Nate Lawson 2004-01-21 03:03:40 +00:00
parent b5b47bc6fa
commit 88a86dedce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124766

View File

@ -41,7 +41,7 @@ if [ -r /var/run/rc.suspend.pid ]; then
exit 1
fi
echo $$ > /var/run/rc.suspend.pid
echo $$ 2> /dev/null > /var/run/rc.suspend.pid
# If you have troubles on suspending with PC-CARD modem, try this.
# See also contrib/pccardq.c (Only for PAO users).