Permalink
Browse files

Print PID in startup line

  • Loading branch information...
1 parent 2aefb40 commit bf5e651a47066b4301420f37ff04856013d221cb @daf daf committed Jan 2, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/pycc.py
View
@@ -309,6 +309,7 @@ def setup_ipython_shell(shell_api=None):
import gevent # should be auto-monkey-patched by pyon already.
import select
import sys
+ import os
def stdin_ready():
infds, outfds, erfds = select.select([sys.stdin], [], [], 0)
if infds:
@@ -352,7 +353,7 @@ def inputhook_gevent():
/____/""",
exit_msg = 'Leaving ION shell, shutting down container.')
- ipshell('Pyon - ION R2 CC interactive IPython shell. Type ionhelp() for help')
+ ipshell('Pyon (PID: %s) - ION R2 CC interactive IPython shell. Type ionhelp() for help' % os.getpid())
def setup_ipython_embed(shell_api=None):
from gevent_zeromq import monkey_patch

0 comments on commit bf5e651

Please sign in to comment.