chiark
/
gitweb
/
~ijackson
/
trains.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
hostside: do serial irq priority poking with a helper script and a pipe in /var/run...
[trains.git]
/
hostside
/
serial-irq-priority
1
#!/bin/bash
2
set -ex
3
4
cd /var/run
5
p=serial-irq-priority-poke
6
rm -f $p
7
mkfifo -m 622 $p
8
exec 3<>$p
9
10
while read -n 1 <&3 dummy; do
11
12
ssd=`start-stop-daemon --stop -t -u root -n irq/4-serial`
13
case "$ssd" in
14
"Would send signal 15 to "*.)
15
pid="${ssd##* }"
16
pid="${pid%.}"
17
chrt -p 55 $pid ||:
18
;;
19
*) echo >&2 "start-stop-daemon said $ssd ?"; continue;;
20
esac
21
22
done