MCPcopy Create free account
hub / github.com/acl-dev/acl / main

Function main

lib_acl/samples/proctl/proctlc.cpp:10–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10int main(int argc, char *argv[])
11{
12 int i;
13
14 acl_socket_init();
15 acl_msg_open("debug.txt", "proctlc");
16 acl_msg_info(">>> in child progname(%s), argc=%d\r\n", argv[0], argc);
17 if (argc > 1)
18 acl_msg_info(">>> in child progname, argv[1]=(%s)\r\n", argv[1]);
19 acl_proctl_child(argv[0], onexit_fn, NULL);
20
21 for (i = 0; i < argc; i++) {
22 acl_msg_info(">>>argv[%d]:%s\r\n", i, argv[i]);
23 }
24
25 i = 0;
26 while (1) {
27 acl_msg_info("i = %d\r\n", i++);
28 if (i == 5)
29 sleep(1);
30 else
31 sleep(1);
32 }
33 return (-1); // ���� -1 ��Ϊ���ø����̼�������
34}
35

Callers

nothing calls this directly

Calls 5

acl_socket_initFunction · 0.85
acl_msg_openFunction · 0.85
acl_msg_infoFunction · 0.85
acl_proctl_childFunction · 0.85
sleepFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…