wip
This commit is contained in:
parent
3d2ea1d291
commit
b64ddffe8b
9
zx
9
zx
@ -730,12 +730,9 @@ execute(State = #s{type = app, realm = Realm, name = Name, version = Version}, A
|
||||
true = register(zx, self()),
|
||||
ok = inets:start(),
|
||||
ok = log(info, "Starting ~ts", [package_string({Realm, Name, Version})]),
|
||||
AppMod = list_to_atom(Name),
|
||||
{ok, Pid} = AppMod:start(normal, Args),
|
||||
Mon = monitor(process, Pid),
|
||||
Shell = spawn(shell, start, []),
|
||||
ok = log(info, "Your shell is ~p, application is: ~p", [Shell, Pid]),
|
||||
exec_wait(State#s{pid = Pid, mon = Mon});
|
||||
{ok, Apps} = application:ensure_all_started(list_to_atom(Name)),
|
||||
ok = log(info, "Started, ~tp", [Apps]),
|
||||
exec_wait(State#s{});
|
||||
execute(#s{type = lib, realm = Realm, name = Name, version = Version}, _) ->
|
||||
Message = "Lib ~ts is available on the system, but is not a standalone app.",
|
||||
PackageString = package_string({Realm, Name, Version}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user