| ... | ... | --- a/kdebase4-workspace.spec |
| ... | ... | +++ b/kdebase4-workspace.spec |
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 |
Summary: KDE 4 application workspace components
|
| 14 | 14 |
Name: kdebase4-workspace
|
| 15 | 15 |
Version: 4.11.22
|
| 16 |
Release: 65
|
|
| 16 |
Release: 66
|
|
| 17 | 17 |
Epoch: 2
|
| 18 | 18 |
License: GPLv2+
|
| 19 | 19 |
Group: Graphical desktop/KDE
|
| ... | ... | --- a/kdm-greeter-helpers.sh |
| ... | ... | +++ b/kdm-greeter-helpers.sh |
| ... | ... | @@ -10,7 +10,7 @@ _term(){ |
| 10 | 10 |
kill -- "${CHILDREN[$i]}"
|
| 11 | 11 |
done
|
| 12 | 12 |
}
|
| 13 |
trap '_term; kill=1' SIGTERM
|
|
| 13 |
trap '_term; exit 0' SIGTERM
|
|
| 14 | 14 |
|
| 15 | 15 |
# Example of script /etc/kdm-greeter.d/foo:
|
| 16 | 16 |
# exec onboard
|
| ... | ... | @@ -23,6 +23,8 @@ do |
| … | … | |
| 23 | 23 |
done < <(find /etc/kdm-greeter.d -maxdepth 1 -type f -executable | sort -h)
|
| 24 | 24 |
|
| 25 | 25 |
# We have started everything, wait for SIGTERM from kdm_greet
|
| 26 |
# https://unix.stackexchange.com/a/450553
|
|
| 27 |
kill=0
|
|
| 28 |
while [ "$kill" != 1 ]; do true; done
|
|
| 26 |
# sleep is an external program, wait is a bash built-in function
|
|
| 27 |
sleep infinity &
|
|
| 28 |
sleep_pid=$!
|
|
| 29 |
CHILDREN+=("$sleep_pid")
|
|
| 30 |
wait "$sleep_pid"
|
New comment