Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 410670 Details for
Bug 553978
errors on boot -> "/lib64/rc/sh/rc-cgroup.sh: line 89:"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixed patch that worksforme to handle second case too
printf_write_error_workaround_through_delay.patch (text/plain), 1.33 KB, created by
abandoned account disabled email
on 2015-08-31 07:49:36 UTC
(
hide
)
Description:
fixed patch that worksforme to handle second case too
Filename:
MIME Type:
Creator:
abandoned account disabled email
Created:
2015-08-31 07:49:36 UTC
Size:
1.33 KB
patch
obsolete
>left as is because it works, for now >that echo & ps delays seems to be preventing the write error from occurring so far > > >--- orig/sh/rc-cgroup.sh.in 2015-08-31 10:39:36.068009618 +0300 >+++ patched/sh/rc-cgroup.sh.in 2015-08-31 10:38:29.817210595 +0300 >@@ -85,8 +85,28 @@ cgroup_add_service() > openrc_cgroup=/sys/fs/cgroup/openrc > if [ -d "$openrc_cgroup" ]; then > cgroup="$openrc_cgroup/$RC_SVCNAME" >+ >+ #the delay these introduce, seems to prevent wtw race is going on that causes this: /lib64/rc/sh/rc-cgroup.sh: line 89: printf: write error: No such device >+ echo "Current: $$ $RC_SVCNAME" 2>/dev/null 1>&2 >+ ps afwj $$ 2>/dev/null 1>&2 >+ #^tested and confirmed to FAIL(2) (at boot) when the above 2 lines are commented out! but not when they are uncommented! so, draw your own conclusions. > mkdir -p "$cgroup" >- [ -f "$cgroup/tasks" ] && printf "%d" 0 > "$cgroup/tasks" >+ local fail=0 >+ if test -f "$cgroup/tasks"; then >+ if ! printf "%d" 0 > "$cgroup/tasks"; then >+ fail=1 >+ fi >+ else >+ fail=2 >+ fi >+ if test "$fail" -ne "0"; then >+ echo "------FAIL(${fail})----- $cgroup/tasks" 1>&2 >+ echo "Current: $$ $RC_SVCNAME" 1>&2 >+ cat "$cgroup/tasks" >+ fi >+# [ -f "$cgroup/tasks" ] || ls -la "$openrc_cgroup" 1>&2 >+ >+# [ -f "$cgroup/tasks" ] && printf "%d" 0 > "$cgroup/tasks" > 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 553978
:
406208
|
406966
|
410632
|
410634
|
410668
|
410670
|
410792
|
414754