Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 553978 | Differences between
and this patch

Collapse All | Expand All

(-)orig/sh/rc-cgroup.sh.in (-1 / +14 lines)
Lines 85-92 cgroup_add_service() Link Here
85
	openrc_cgroup=/sys/fs/cgroup/openrc
85
	openrc_cgroup=/sys/fs/cgroup/openrc
86
	if [ -d "$openrc_cgroup" ]; then
86
	if [ -d "$openrc_cgroup" ]; then
87
		cgroup="$openrc_cgroup/$RC_SVCNAME"
87
		cgroup="$openrc_cgroup/$RC_SVCNAME"
88
89
    #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
90
    echo "Current: $$ $RC_SVCNAME" 2>/dev/null 1>&2
91
    ps afwj $$ 2>/dev/null 1>&2
88
		mkdir -p "$cgroup"
92
		mkdir -p "$cgroup"
89
		[ -f "$cgroup/tasks" ] && printf "%d" 0 > "$cgroup/tasks"
93
		if test -f "$cgroup/tasks"; then
94
      printf "%d" 0 > "$cgroup/tasks"
95
    else
96
      echo "------FAIL----- $cgroup/tasks" 1>&2
97
      echo "Current: $$ $RC_SVCNAME" 1>&2
98
      cat "$cgroup/tasks"
99
    fi
100
#    [ -f "$cgroup/tasks" ] || ls -la "$openrc_cgroup" 1>&2
101
102
#		[ -f "$cgroup/tasks" ] && printf "%d" 0 > "$cgroup/tasks"
90
	fi
103
	fi
91
}
104
}
92
105

Return to bug 553978