OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 == Examples | 69 == Examples |
70 | 70 |
71 Registers an on-demand server that will execute catch_exception_tool(1) when a | 71 Registers an on-demand server that will execute catch_exception_tool(1) when a |
72 Mach message is sent to a Mach port obtained from the bootstrap server by | 72 Mach message is sent to a Mach port obtained from the bootstrap server by |
73 looking up the name +svc+: | 73 looking up the name +svc+: |
74 [subs="quotes"] | 74 [subs="quotes"] |
75 ---- | 75 ---- |
76 $ *on_demand_service_tool --load --label=catch_exception \ | 76 $ *on_demand_service_tool --load --label=catch_exception \ |
77 --mach-service=svc \ | 77 --mach-service=svc \ |
78 $(which catch_exception_tool) --mach-service=svc \ | 78 $(which catch_exception_tool) --mach-service=svc \ |
79 --file=/tmp/out --nonblocking --persistent* | 79 --file=/tmp/out --persistent --timeout=0* |
80 ---- | 80 ---- |
81 | 81 |
82 Unregisters the on-demand server installed above: | 82 Unregisters the on-demand server installed above: |
83 [subs="quotes"] | 83 [subs="quotes"] |
84 ---- | 84 ---- |
85 $ *on_demand_service_tool --unload --label=catch_exception* | 85 $ *on_demand_service_tool --unload --label=catch_exception* |
86 ---- | 86 ---- |
87 | 87 |
88 == Exit Status | 88 == Exit Status |
89 | 89 |
90 *0*:: | 90 *0*:: |
91 Success. | 91 Success. |
92 | 92 |
93 *1*:: | 93 *1*:: |
94 Failure, with a message printed to the standard error stream. | 94 Failure, with a message printed to the standard error stream. |
95 | 95 |
96 == See Also | 96 == See Also |
97 | 97 |
98 exception_port_tool(1), | 98 exception_port_tool(1), |
99 launchctl(1) | 99 launchctl(1) |
100 on_demand_service_tool(1) | 100 on_demand_service_tool(1) |
101 | 101 |
102 include::man_footer.ad[] | 102 include::man_footer.ad[] |
OLD | NEW |