Skip to content

Instantly share code, notes, and snippets.

@dsabanin
Last active August 29, 2015 14:05
Show Gist options
  • Save dsabanin/80a8a1edb705377bfe34 to your computer and use it in GitHub Desktop.
Save dsabanin/80a8a1edb705377bfe34 to your computer and use it in GitHub Desktop.
--Erl->-C--[ 145]: <<131,104,2,97,1,104,3,100,0,3,114,117,110,108,0,0,0,4,107,0,15,47,117,115,114,47,98,105,110,47,100,111,99,107,101,114,107,0,6,99,111,109,109,105,116,107,0,32,101,99,49,57,98,50,48,99,53,51,97,53,52,97,98,50,53,55,51,102,53,56,51,56,49,57,97,102,57,55,55,98,107,0,37,98,115,99,105,47,101,99,49,57,98,50,48,99,53,51,97,53,52,97,98,50,53,55,51,102,53,56,51,56,49,57,97,102,57,55,55,98,106,108,0,0,0,2,100,0,6,115,116,100,101,114,114,100,0,6,115,116,100,111,117,116,106>>
Parsed cmd '/usr/bin/docker' options
(stdin=null, stdout=erlang, stderr=erlang)
Redirecting [stdin -> null]
Redirecting [stdout -> pipe:{r=6,w=7}]
Redirecting [stderr -> pipe:{r=8,w=9}]
Starting child: '/usr/bin/docker'
child = (stdin=null(fd:5), stdout=fd:7, stderr=fd:9)
parent = (stdin=none, stdout=fd:6, stderr=fd:8)
Args[0]: /usr/bin/docker
Args[1]: commit
Args[2]: ec19b20c53a54ab2573f583819af977b
Args[3]: bsci/ec19b20c53a54ab2573f583819af977b
Spawned child pid 7075
Parent closing pid 7075 pipe writing end (fd=7)
Set pid 7075's fd=6 to non-blocking mode (flags=800)
Setup reading end of pid 7075 stdout redirection (fd=6 [non-block])
Parent closing pid 7075 pipe writing end (fd=9)
Set pid 7075's fd=8 to non-blocking mode (flags=800)
Setup reading end of pid 7075 stderr redirection (fd=8 [non-block])
--Erl-<-C--[ 17]: <<131,104,2,97,1,104,2,100,0,2,111,107,98,0,0,27,163>>
Pid 7075 adding stdout checking (fd=6)
Pid 7075 adding stdout checking (fd=8)
Selecting maxfd=8 (sleep={5s,0us})
(<0.14777.3>) call exec:run(["/usr/bin/docker","commit","ec19b20c53a54ab2573f583819af977b",
"bsci/ec19b20c53a54ab2573f583819af977b"],[sync,stdout,stderr])
(<0.14777.3>) call exec:do_run({run,["/usr/bin/docker","commit","ec19b20c53a54ab2573f583819af977b",
"bsci/ec19b20c53a54ab2573f583819af977b"],
[sync,stdout,stderr]},[sync,stdout,stderr])
(<0.14769.3>) call exec:handle_call({port,{{run,["/usr/bin/docker","commit","ec19b20c53a54ab2573f583819af977b",
"bsci/ec19b20c53a54ab2573f583819af977b"],
[sync,stdout,stderr]},
nolink}},{<0.14777.3>,#Ref<0.0.65.102709>},{state,#Port<0.41052>,0,{[],[]},[],exec_mon,true})
(<0.14769.3>) call exec:is_port_command({{run,["/usr/bin/docker","commit","ec19b20c53a54ab2573f583819af977b",
"bsci/ec19b20c53a54ab2573f583819af977b"],
[sync,stdout,stderr]},
nolink},<0.14777.3>,{state,#Port<0.41052>,0,{[],[]},[],exec_mon,true})
(<0.14769.3>) call exec:check_cmd_options([sync,stdout,stderr],<0.14777.3>,{state,#Port<0.41052>,0,{[],[]},[],exec_mon,true},[],[])
(<0.14769.3>) call exec:check_cmd_options([stdout,stderr],<0.14777.3>,{state,#Port<0.41052>,0,{[],[]},[],exec_mon,true},[],[])
(<0.14769.3>) call exec:check_cmd_options([stderr],<0.14777.3>,{state,#Port<0.41052>,0,{[],[]},[],exec_mon,true},[stdout],[{stdout,<0.14777.3>}])
(<0.14769.3>) call exec:check_cmd_options([],<0.14777.3>,{state,#Port<0.41052>,0,{[],[]},[],exec_mon,true},[stderr,stdout],[{stderr,<0.14777.3>},{stdout,<0.14777.3>}])
(<0.14769.3>) returned from exec:check_cmd_options/5 -> {[stderr,stdout],
[{stderr,<0.14777.3>},
{stdout,
<0.14777.3>}]}
(<0.14769.3>) returned from exec:check_cmd_options/5 -> {[stderr,stdout],
[{stderr,<0.14777.3>},
{stdout,
<0.14777.3>}]}
(<0.14769.3>) returned from exec:check_cmd_options/5 -> {[stderr,stdout],
[{stderr,<0.14777.3>},
{stdout,
<0.14777.3>}]}
(<0.14769.3>) returned from exec:check_cmd_options/5 -> {[stderr,stdout],
[{stderr,<0.14777.3>},
{stdout,
<0.14777.3>}]}
(<0.14769.3>) returned from exec:is_port_command/3 -> {ok,
{run,
["/usr/bin/docker",
"commit",
"ec19b20c53a54ab2573f583819af977b",
"bsci/ec19b20c53a54ab2573f583819af977b"],
[stderr,stdout]},
nolink,
[{stderr,<0.14777.3>},
{stdout,<0.14777.3>}]}
(<0.14769.3>) call exec:next_trans(0)
(<0.14769.3>) returned from exec:next_trans/1 -> 1
(<0.14769.3>) returned from exec:handle_call/3 -> {noreply,
{state,#Port<0.41052>,0,
{[{1,
{<0.14777.3>,
#Ref<0.0.65.102709>},
nolink,
[{stderr,<0.14777.3>},
{stdout,
<0.14777.3>}]}],
[]},
[],exec_mon,true}}
exec got msg from port: {1,{ok,7075}}
(bsci@10.10.1.171)12> (<0.14769.3>) call exec:handle_info({#Port<0.41052>,{data,<<131,104,2,97,1,104,2,100,0,2,111,107,98,0,0,27,163>>}},{state,#Port<0.41052>,0,
{[{1,
{<0.14777.3>,#Ref<0.0.65.102709>},
nolink,
[{stderr,<0.14777.3>},{stdout,<0.14777.3>}]}],
[]},
[],exec_mon,true})
(<0.14769.3>) call exec:debug(true,"~w got msg from port: ~p\n",[exec,{1,{ok,7075}}])
(<0.14769.3>) returned from exec:debug/3 -> ok
(<0.14769.3>) call exec:get_transaction({[{1,
{<0.14777.3>,#Ref<0.0.65.102709>},
nolink,
[{stderr,<0.14777.3>},{stdout,<0.14777.3>}]}],
[]},1)
(<0.14769.3>) call exec:get_transaction({[{1,
{<0.14777.3>,#Ref<0.0.65.102709>},
nolink,
[{stderr,<0.14777.3>},{stdout,<0.14777.3>}]}],
[]},1,{[{1,
{<0.14777.3>,#Ref<0.0.65.102709>},
nolink,
[{stderr,<0.14777.3>},{stdout,<0.14777.3>}]}],
[]})
(<0.14769.3>) returned from exec:get_transaction/3 -> {true,
{<0.14777.3>,
#Ref<0.0.65.102709>},
nolink,
[{stderr,<0.14777.3>},
{stdout,<0.14777.3>}],
{[],[]}}
(<0.14769.3>) returned from exec:get_transaction/2 -> {true,
{<0.14777.3>,
#Ref<0.0.65.102709>},
nolink,
[{stderr,<0.14777.3>},
{stdout,<0.14777.3>}],
{[],[]}}
(<0.14769.3>) call exec:maybe_add_monitor({ok,7075},<0.14777.3>,nolink,[{stderr,<0.14777.3>},{stdout,<0.14777.3>}],true)
(<0.14769.3>) returned from exec:maybe_add_monitor/5 -> {ok,<0.14795.3>,7075}
(<0.14769.3>) returned from exec:handle_info/2 -> {noreply,
{state,#Port<0.41052>,0,
{[],[]},
[],exec_mon,true}}
(<0.14795.3>) call exec:'-maybe_add_monitor/5-fun-0-'(<0.14769.3>,true,[{stderr,<0.14777.3>},{stdout,<0.14777.3>}],nolink,<0.14777.3>,7075)
(<0.14795.3>) call exec:ospid_init(<0.14777.3>,7075,nolink,<0.14769.3>,[{stderr,<0.14777.3>},{stdout,<0.14777.3>}],true)
(<0.14795.3>) call exec:ospid_loop({<0.14777.3>,7075,<0.14769.3>,<0.14777.3>,<0.14777.3>,true})
(<0.14777.3>) call exec:wait_for_ospid_exit(7075,#Ref<0.0.65.102740>,[],[])
(<0.14777.3>) call exec:sync_res([],[])
(<0.14777.3>) returned from exec:sync_res/2 -> []
(<0.14777.3>) returned from exec:wait_for_ospid_exit/4 -> {error,
[{reason,
{'DOWN',
#Ref<0.0.65.102600>,
process,
<0.14791.3>,
normal}}]}
(<0.14777.3>) returned from exec:do_run/2 -> {error,
[{reason,
{'DOWN',#Ref<0.0.65.102600>,
process,<0.14791.3>,
normal}}]}
(<0.14777.3>) returned from exec:run/2 -> {error,
[{reason,
{'DOWN',#Ref<0.0.65.102600>,
process,<0.14791.3>,normal}}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment