aboutsummaryrefslogtreecommitdiff
path: root/bbot/worker.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-11 16:11:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-11 16:11:51 +0200
commit50579107e3f628c2e3c644d5af01ef67404a0f2a (patch)
treedf1c72b7bd6478a0676c573db9ef619e8610be4c /bbot/worker.cxx
parentf38fa3d9a5ee0ab92ac6c8b07b935724bbbcef1e (diff)
Close sockets on exec
Diffstat (limited to 'bbot/worker.cxx')
-rw-r--r--bbot/worker.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/bbot/worker.cxx b/bbot/worker.cxx
index 07d92c3..e0149fc 100644
--- a/bbot/worker.cxx
+++ b/bbot/worker.cxx
@@ -22,6 +22,11 @@ using namespace std;
using namespace butl;
using namespace bbot;
+namespace bbot
+{
+ worker_options ops;
+}
+
int
main (int argc, char* argv[])
try
@@ -62,7 +67,7 @@ try
#endif
cli::argv_scanner scan (argc, argv, true);
- worker_options ops (scan);
+ ops.parse (scan);
// Version.
//