Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
undefined variables
#19
it is a function. that function constructs a command with information given in the function call arguments (AWS region name) and global reference settings (command path) then calls subprocess.Popen with it. it returns the value Popen() returned. the caller does this for every region given on the command line or, if none were given, for every known region. a mistake in the function, a typo, cause it to pick up all known regions instead of the one that was being passed by the caller. the command it was giving to Popen() was the script itself. the intention was to not launch a process at all if only one region was given. but that condition failed to be created resulting in thousands of processes and a system crash.

having the function not call Popen() would mean something would need to output mocked results that other code would be expecting to get over a pipe per child. if there is no child, then either something has to produce fake data to test the code that reads the results.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
undefined variables - by Skaperen - Aug-28-2019, 05:27 AM
RE: undefined variables - by perfringo - Aug-28-2019, 10:34 AM
RE: undefined variables - by ThomasL - Aug-28-2019, 12:07 PM
RE: undefined variables - by Skaperen - Aug-28-2019, 07:55 PM
RE: undefined variables - by ndc85430 - Sep-08-2019, 07:51 AM
RE: undefined variables - by Skaperen - Sep-08-2019, 06:32 PM
RE: undefined variables - by ichabod801 - Sep-08-2019, 07:06 PM
RE: undefined variables - by Skaperen - Sep-08-2019, 10:22 PM
RE: undefined variables - by ndc85430 - Sep-09-2019, 05:53 AM
RE: undefined variables - by Skaperen - Sep-09-2019, 06:17 AM
RE: undefined variables - by wavic - Sep-09-2019, 12:46 PM
RE: undefined variables - by ichabod801 - Sep-09-2019, 12:49 PM
RE: undefined variables - by Skaperen - Sep-10-2019, 01:24 AM
RE: undefined variables - by ichabod801 - Sep-10-2019, 11:56 AM
RE: undefined variables - by DeaD_EyE - Sep-10-2019, 01:25 PM
RE: undefined variables - by ndc85430 - Sep-11-2019, 05:50 AM
RE: undefined variables - by Skaperen - Sep-11-2019, 07:25 PM
RE: undefined variables - by ndc85430 - Sep-12-2019, 05:36 PM
RE: undefined variables - by Skaperen - Sep-12-2019, 11:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  compiling with an undefined variable Skaperen 0 998 Nov-10-2022, 11:59 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020