equal
deleted
inserted
replaced
22 self.fout = fout |
22 self.fout = fout |
23 self.ferr = ferr |
23 self.ferr = ferr |
24 |
24 |
25 def run(): |
25 def run(): |
26 "run the command in sys.argv" |
26 "run the command in sys.argv" |
27 sys.exit(dispatch(request(sys.argv[1:]))) |
27 sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) |
28 |
28 |
29 def dispatch(req): |
29 def dispatch(req): |
30 "run the command specified in req.args" |
30 "run the command specified in req.args" |
31 if req.ferr: |
31 if req.ferr: |
32 ferr = req.ferr |
32 ferr = req.ferr |