Skip to content

Commit b05b728

Browse files
footpadwolfpmzara
authored andcommitted
Remove procfs dependency to make agent more compatible with other operating systems
cr https://code.amazon.com/reviews/CR-3765381
1 parent 9a5a7ea commit b05b728

File tree

1 file changed

+1
-1
lines changed
  • vendor/gems/process_manager-0.0.13/lib/process_manager

1 file changed

+1
-1
lines changed

vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def process_matcher(pid)
167167
if pid == own_pid
168168
return false
169169
end
170-
File.read("/proc/#{pid}/cmdline").include?("codedeploy-agent: master")
170+
`ps -p #{pid} -o command`.include?("codedeploy-agent: master")
171171
end
172172

173173
def handle_pid_file

0 commit comments

Comments
 (0)