acassis commented on PR #18116:
URL: https://github.com/apache/nuttx/pull/18116#issuecomment-3785010424
@Gary-Hobson I didn't know that Ctrl+C should hit a process running in
background, but I double checked it on Linux and in fact it worked, but there
are some catch:
If the process is running in foregroup Ctrl+C will terminate it:
```
alan@dev:~/nuttxspace/nuttx$ top
Ctrl+C
$ ps aux | grep top
// There is not top running.
```
When the process is running in backgroup Ctrl+C just stops it, but it still
in there, see:
```
alan@dev:~/nuttxspace/nuttx$ top &
[1] 96099
alan@dev:~/nuttxspace/nuttx$ ^C
[1]+ Stopped top
alan@dev:~/nuttxspace/nuttx$ ps
PID TTY TIME CMD
9921 pts/0 00:00:00 bash
96099 pts/0 00:00:00 top
96104 pts/0 00:00:00 ps
alan@dev:~/nuttxspace/nuttx$ ps aux | grep top
alan 96099 0.0 0.0 12708 4008 pts/0 T 12:20 0:00 top
alan 96108 0.0 0.0 9288 2372 pts/0 S+ 12:21 0:00 grep
--color=auto top
```
Are you replicating this behavior, or Ctrl+C will also terminate the process
running in background?
I think we should replicate the Linux behavior :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]