Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-11-18
10:47 • Ticket [ab913b8e9e] xterm window closes by itself when we run “ctrl + c”... artifact: 05931f0d14 user: chrstphrchvz
2023-11-16
16:50 • Ticket [ab913b8e9e]: 4 changes artifact: 945c47be61 user: oehhar
16:46 • Ticket [ab913b8e9e]: 3 changes artifact: 438c59f5d7 user: arvind29
16:41 • New ticket [ab913b8e9e]. artifact: e644a89782 user: arvind29

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.