SOURCES: vprocunhide.init - ignore chdir() errors which happen on ...
glen
glen at pld-linux.org
Fri Jul 6 14:38:43 CEST 2007
Author: glen Date: Fri Jul 6 12:38:43 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- ignore chdir() errors which happen on zombie processes as they don't have
'fd' and 'task' /proc directories
---- Files affected:
SOURCES:
vprocunhide.init (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SOURCES/vprocunhide.init
diff -u SOURCES/vprocunhide.init:1.9 SOURCES/vprocunhide.init:1.10
--- SOURCES/vprocunhide.init:1.9 Tue Jul 3 20:27:14 2007
+++ SOURCES/vprocunhide.init Fri Jul 6 14:38:38 2007
@@ -27,7 +27,7 @@
start() {
show "Fixing vservers /proc entries visibility"
busy
- ${_SETATTR} -Rx --hide /proc
+ ${_SETATTR} -Rx --hide /proc 2>/dev/null
$_VPROCUNHIDE
RETVAL=$?
deltext
@@ -40,9 +40,10 @@
}
stop() {
+ # XXX why start and stop both do --hide?
show "Stopping vservers /proc entries visibility"
busy
- ${_SETATTR} -Rx --hide /proc
+ ${_SETATTR} -Rx --hide /proc 2>/dev/null
rm -f /var/lock/subsys/vprocunhide
ok
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/vprocunhide.init?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list