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