On 16-May-2002 Scott Furt wrote:
> Soooo.... [restart] by itself will restart blackbox
> but if i pass a shell cmd to [restart], blackbox will
> *exit* and run that cmd (and not try to restart itself) ?
> 
> That seems like a weird way to do things -- if BB is
> going to exit and run the cmd, why not have [exit]
> accept shel cmds instead of [restart] ?
> 
> Or am i missing something?
> 

[restart] is implemented like this:

restart(app) {
  if (! app)
    exec(argv[0]); // exec ourself
  exec(app);       // exec something else
}

so just the restart tag causes blackbox to run itself again.  It never really
exits, it just calls exec() in its own process.  If (tag) is specified that tag
is used as the process to exec.

[exit] just closes everything down and exit()s.

Reply via email to