Skip to content

Commit 710e6cf

Browse files
committed
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 <[email protected]>
1 parent 417f04a commit 710e6cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rmtfs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,10 @@ static int run_rmtfs(int rprocfd)
445445
rproc_start();
446446

447447
for (;;) {
448-
if (rprocfd >= 0 && sig_int_count == 1 && !sig_int_handled) {
448+
if (sig_int_count == 1 && !sig_int_handled) {
449+
if (rprocfd < 0)
450+
break;
451+
449452
rproc_stop();
450453
sig_int_handled = true;
451454
} else if (sig_int_count > 1) {

0 commit comments

Comments
 (0)