Bug 31534 - WorkQueue is the only place that should know about special exit codes
Summary: WorkQueue is the only place that should know about special exit codes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 31535
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-16 01:44 PST by Eric Seidel (no email)
Modified: 2009-11-16 03:04 PST (History)
1 user (show)

See Also:


Attachments
Patch (3.65 KB, patch)
2009-11-16 01:45 PST, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff
Patch (9.10 KB, patch)
2009-11-16 02:29 PST, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-11-16 01:44:14 PST
WorkQueue is the only place that should know about special exit codes

When a child process handles an error but still needs to exit early, we use a special error code.  This lets the child process no exit(0) (normal exit) which would be mildly confusing.

Lets move this special handling all into one file (workqueue.py) so that the logic and comments are all in one place.
Comment 1 Eric Seidel (no email) 2009-11-16 01:45:51 PST
Created attachment 43278 [details]
Patch
Comment 2 Adam Barth 2009-11-16 01:47:31 PST
Comment on attachment 43278 [details]
Patch

cls.handled_error_code

and unit test!
Comment 3 Eric Seidel (no email) 2009-11-16 02:29:47 PST
Created attachment 43284 [details]
Patch
Comment 4 Adam Barth 2009-11-16 02:36:39 PST
Comment on attachment 43284 [details]
Patch

Excellent!
Comment 5 Eric Seidel (no email) 2009-11-16 03:04:24 PST
Comment on attachment 43284 [details]
Patch

Clearing flags on attachment: 43284

Committed r51024: <http://trac.webkit.org/changeset/51024>
Comment 6 Eric Seidel (no email) 2009-11-16 03:04:31 PST
All reviewed patches have been landed.  Closing bug.