| 8 | } |
| 9 | |
| 10 | int 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…