lichao
2021-04-13 047f801078a52042ef02750b577233d115ed0f57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * =====================================================================================
 *
 *       Filename:  center_main.cc
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2021年04月13日 16时16分26秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Li Chao (), lichao@aiotlink.com
 *   Organization:  
 *
 * =====================================================================================
 */
#include "box.h"
#include "center.h"
#include "defs.h"
#include "signalhandle.h"
 
int center_main(int argc, const char *argv[])
{
    BHCenter center(BHomeShm());
    center.Start();
    WaitForSignals({SIGINT, SIGTERM});
    // BHomeShm().Remove(); // remove ?
    return 0;
}
 
namespace
{
static bool install = BoxInstall("bhshmq_center", center_main, "bhome center program.");
}