Skip to content

Commit cf07d5c

Browse files
committed
Show "Press Ctrl-C" in fg like tail -f does
1 parent 4296ce1 commit cf07d5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

supervisor/supervisorctl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,8 @@ def do_fg(self, arg):
13111311
self.handle_error('ERROR: process not running')
13121312
return
13131313

1314+
self.ctl.output('==> Press Ctrl-C to exit <==')
1315+
13141316
a = None
13151317
try:
13161318
# this thread takes care of the output/error messages
@@ -1344,7 +1346,7 @@ def do_fg(self, arg):
13441346

13451347
def help_fg(self,args=None):
13461348
self.ctl.output('fg <process>\tConnect to a process in foreground mode')
1347-
self.ctl.output('Press Ctrl+C to exit foreground')
1349+
self.ctl.output("\t\tCtrl-C to exit")
13481350

13491351

13501352
def main(args=None, options=None):

0 commit comments

Comments
 (0)