~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_breakin.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-31 14:56:55 UTC
  • mto: This revision was merged to the branch mainline in revision 4580.
  • Revision ID: john@arbash-meinel.com-20090731145655-y034rdf2csnr8kxe
Fix some small comment bugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                children of self)
73
73
            2) Sending SIGBREAK to a process that shares the current console,
74
74
                which can be in its own process group.
75
 
        So we have start_bzr_subprocess to create a new process group for the
76
 
        spawned process, and then we map
 
75
        So we have start_bzr_subprocess create a new process group for the
 
76
        spawned process (via a flag to Popen), and then we map
77
77
            SIGQUIT to GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT)
78
78
            SIGKILL to TerminateProcess
79
79
        """
122
122
            # Win32 doesn't support WNOHANG, so we just pass 0
123
123
            opts = getattr(os, 'WNOHANG', 0)
124
124
            try:
125
 
                # note: waitpid is different on win32, but this test only runs
126
 
                # on unix
127
125
                # TODO: waitpid doesn't work well on windows, we might consider
128
126
                #       using WaitForSingleObject(proc._handle, TIMEOUT)
129
127
                #       instead. Most notably, the WNOHANG isn't allowed, so