Skip to content

Commit

Permalink
shutdown_request for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 25, 2013
1 parent bc18c23 commit fd596d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jlkernel/handlers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@ function complete_request(socket, msg)
[ "matches" => matches ]))
end

function shutdown_request(socket, msg)
send_ipython(request, msg_reply(msg, "shutdown_reply",
msg.content))
exit()
end

const handlers = (String=>Function)[
"execute_request" => execute_request_0x535c5df2,
"complete_request" => complete_request,
"shutdown_request" => shutdown_request,
]

0 comments on commit fd596d4

Please sign in to comment.