diff options
author | Russell King <[email protected]> | 2015-06-06 08:27:30 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-06-06 08:27:30 +1000 |
commit | 38d8571dad8a759bdc051dbff747b189c90658cf (patch) | |
tree | 2c974617cfea69d8f1ebe156d4bce160d354abb5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | a9592f17e87a8afbf8732f0ec4c4e1ff42d38d63 (diff) |
drm: fix writing to /sys/class/drm/*/status
Writing to a file is supposed to return the number of bytes written.
Returning zero unfortunately causes bash to constantly spin trying
to write to the sysfs file, to such an extent that even ^c and ^z
have no effect. The only way out of that is to kill the shell and
log back in. This isn't nice behaviour.
Fix it by returning the number of characters written to sysfs files.
[airlied: used suggestion from Al Viro]
Signed-off-by: Russell King <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions