xterm window closes by itself when we run “ctrl + c”
Openab913b8e9e639e85350af98e7d4a4e76f53dfc6aCreated 3 years agoUpdated 3 years ago
Descriptionplain2023-11-16 16:41:42
Hello, On tcl prompt Xterm window is opening whenever I run “exec xterm &”. But xterm window closes by itself when we run “ctrl + c” after “exec xterm &”. Please let me know if there is any way so that Xterm window remains open even when we run “ctrl + c” is used.
arvind29 Ticket [ab913b8e9e]: 3 changes
[History diff]2023-11-16 16:46:28
oehharwiki2023-11-16 16:50:08
I suppose, this is normal behabviour. The xterm is a child process of tcl. If tcl is exited, xterm exits also.
Try the same with sh:
- open a shell window
- call xterm within it
- close the shell window
There are for sure other ways to call a process, so it remains running when the parent is stopped.
Take care, Harald
Disclaimer: WIndows user here, limitted Linux knowledge...
chrstphrchvzwiki2023-11-18 10:47:16
The discrepancy could be that if tclsh is instead closed using exit or Ctrl+D then xterm stays open.
Log in (anonymous is fine) to add a comment.