Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all, Most of the applications I open, are opened through the shell, like so: $ emacs mycode.c & $ gedit mydoc.txt & Problem is, that when I close the ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    5

    Avoiding shell killing its CHILD processes

    Hello all,

    Most of the applications I open, are opened through the shell, like so:
    $ emacs mycode.c &
    $ gedit mydoc.txt &

    Problem is, that when I close the calling shell, it kills all of its child processes.
    This usually happens some time after I've opened the files, and seems to always catch unguarded....

    How could this be avoided?

  2. #2
    Just Joined! elrohir's Avatar
    Join Date
    Jul 2006
    Location
    A happy place inside my mind
    Posts
    11
    What I always do is run things using screen. (It's in the repos.)
    This is especially useful for logging in via SSH from somewhere else and not having lost all the work in emacs. (For this you have to detatch the screen session using Ctrl-A, D).

    For your purposes you can start screen, run gedit, then close the terminal window. Screen will still be running: return to where you started gedit from by opening any old terminal and running "screen -r".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...