Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 106634 Details for
Bug 161328
sys-apps/baselayout-1.13.0_alpha11 calls ps with wrong arguments when cleaning /var/lock
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Test /proc/self being there
bootmisc.patch (text/plain), 853 bytes, created by
Roy Marples (RETIRED)
on 2007-01-12 07:32:33 UTC
(
hide
)
Description:
Test /proc/self being there
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-01-12 07:32:33 UTC
Size:
853 bytes
patch
obsolete
>Index: init.d/bootmisc >=================================================================== >--- init.d/bootmisc (revision 2482) >+++ init.d/bootmisc (working copy) >@@ -56,16 +56,17 @@ > > # Clean up /var/run and create /var/run/utmp so we can login. > for x in $(find /var/run/ ! -type d ! -name utmp ! -name innd.pid ! -name random-seed ! -name ld-elf.so.hints); do >+ [[ ! -f ${x} ]] && continue > # Do not remove pidfiles of already running daemons > if [[ ${x} == *".pid" ]] ; then > local pid=$(sed -e '1q' "${x}") >- if [[ -e /proc/${pid}/cmdline ]] ; then >- continue >+ # BSD doesn't have /proc mounted by default >+ if [[ -e /proc/self ]] ; then >+ [[ -e /proc/${pid}/cmdline ]] && continue > else > ps -p "${pid}" >/dev/null && continue > fi > fi >- [[ ! -f ${x} ]] && continue > rm -f "${x}" > done > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 161328
:
106634
|
106644