Skip to content

Commit da1a4db

Browse files
committed
linux_main.c, linux_main_rt.c: quit the ctrlloop when SIGINTed
Signed-off-by: Stepan Pressl <pressl.stepan@gmail.com>
1 parent 325aa60 commit da1a4db

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CodeGen/src/linux_main_rt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ static void *rt_task(void *p)
200200
void endme(int n)
201201
{
202202
end = 1;
203+
NAME(MODEL, _pt_ctx).ctrlloopend = 1;
203204
}
204205

205206
void print_usage(void)

CodeGen/src/nuttx_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ static void *rt_task(void *p)
210210
void endme(int n)
211211
{
212212
end = 1;
213+
NAME(MODEL, _pt_ctx).ctrlloopend = 1;
213214
}
214215

215216
void print_usage(void)

0 commit comments

Comments
 (0)