Skip to content

Commit

Permalink
only kililng processes whose pids are in pid files, not globbing othe…
Browse files Browse the repository at this point in the history
…r files unnecessarily
  • Loading branch information
shatterednirvana committed Aug 20, 2013
1 parent 721ed0d commit d84367d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppManager/app_manager_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def kill_app_instances_for_app(app_name):
Returns:
A list of the process IDs whose instances were terminated.
"""
pid_files = glob.glob(constants.APP_PID_DIR + app_name + '-*')
pid_files = glob.glob(constants.APP_PID_DIR + app_name + '-*.pid')
pids_killed = []
for pid_file in pid_files:
pid = file_io.read(pid_file)
Expand Down

0 comments on commit d84367d

Please sign in to comment.