Re: debuggging a recurring system freeze (syslog redir, ktrace?)
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