• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: debuggging a recurring system freeze (syslog redir, ktrace?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debuggging a recurring system freeze (syslog redir, ktrace?)


  • Subject: Re: debuggging a recurring system freeze (syslog redir, ktrace?)
  • From: Ethan Clark <email@hidden>
  • Date: Mon, 30 Mar 2009 15:58:27 -0700

Is there some way to keep issuing more commands without causing a fork?

This is where someone with more knowledge of the system (UNIX?) internals may want to chime in...


I am not a kernel hacker, nor really much of a programmer, but I believe this behavior is inherent in what's actually happening when you use "exec". exec is a built-in function of the shell (usually bash). Normally, running a program does a fork/exec where the current process splits and then the new code is executed within the newly created process. When that new code is finished, it's ... done. Process ends. If you're running the new process without the fork, well, the current process ends.

Disclaimer: I may have no idea what I'm talking about.

-Ethan

On Mar 30, 2009, at 1:54 PM, Thomas Tempelmann wrote:

Oh, I just realized that when I ssh into my server and do a "exec ps",
it'll close the conection after executing the command.

Is there some way to keep issuing more commands without causing a fork?

--
Thomas Tempelmann, http://www.tempel.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: debuggging a recurring system freeze (syslog redir, ktrace?)
      • From: William Kucharski <email@hidden>
References: 
 >debuggging a recurring system freeze (syslog redir, ktrace?) (From: Thomas Tempelmann <email@hidden>)
 >Re: debuggging a recurring system freeze (syslog redir, ktrace?) (From: Terry Lambert <email@hidden>)
 >Re: debuggging a recurring system freeze (syslog redir, ktrace?) (From: Thomas Tempelmann <email@hidden>)
 >Re: debuggging a recurring system freeze (syslog redir, ktrace?) (From: Ethan Clark <email@hidden>)
 >Re: debuggging a recurring system freeze (syslog redir, ktrace?) (From: Thomas Tempelmann <email@hidden>)
 >Re: debuggging a recurring system freeze (syslog redir, ktrace?) (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: Re: What if process crashes while holding a locked semaphore?
  • Next by Date: Re: debuggging a recurring system freeze (syslog redir, ktrace?)
  • Previous by thread: Re: debuggging a recurring system freeze (syslog redir, ktrace?)
  • Next by thread: Re: debuggging a recurring system freeze (syslog redir, ktrace?)
  • Index(es):
    • Date
    • Thread