mirror of
https://github.com/linux-msm/rmtfs.git
synced 2025-12-24 22:19:15 +01:00
rmtfs: Exit even though there's no rprocfd
Attempting to shut down a system with rmtfs running without an associated remoteproc results in systemd waiting forever for the remoteproc code to never signal that it's done. Instead exit immediately when signalled, when there's no associated remoteproc. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
5
rmtfs.c
5
rmtfs.c
@@ -445,7 +445,10 @@ static int run_rmtfs(int rprocfd)
|
||||
rproc_start();
|
||||
|
||||
for (;;) {
|
||||
if (rprocfd >= 0 && sig_int_count == 1 && !sig_int_handled) {
|
||||
if (sig_int_count == 1 && !sig_int_handled) {
|
||||
if (rprocfd < 0)
|
||||
break;
|
||||
|
||||
rproc_stop();
|
||||
sig_int_handled = true;
|
||||
} else if (sig_int_count > 1) {
|
||||
|
||||
Reference in New Issue
Block a user