Changeset 7917 for trunk/Ohana/src/opihi/doc/ippc_commandserver.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/doc/ippc_commandserver.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/doc/ippc_commandserver.c
r3419 r7917 40 40 41 41 if (IPPC_DEFAULT_VERBOSITY > 1) { 42 fprintf(stderr, "%s : THIS PROGRAM _IS_ A REMOTE EXPLOIT!!!\n", argv[0]);42 gprint (GP_ERR, "%s : THIS PROGRAM _IS_ A REMOTE EXPLOIT!!!\n", argv[0]); 43 43 } 44 44 … … 78 78 while(1) { 79 79 if (IPPC_DEFAULT_VERBOSITY > 1) { 80 fprintf(stderr, "%s : pid: %d - waiting for connection...\n", argv[0], getpid());80 gprint (GP_ERR, "%s : pid: %d - waiting for connection...\n", argv[0], getpid()); 81 81 } 82 82 … … 86 86 } else { 87 87 if (IPPC_DEFAULT_VERBOSITY > 1) { 88 fprintf(stderr, "%s : pid: %d - kids: %d - child limit already reached, sleeping %ds...\n",88 gprint (GP_ERR, "%s : pid: %d - kids: %d - child limit already reached, sleeping %ds...\n", 89 89 argv[0], getpid(), kids, WAIT_FOR_KIDS); 90 90 } … … 98 98 if (fork() == 0) { 99 99 if (IPPC_DEFAULT_VERBOSITY > 1) { 100 fprintf(stderr, "%s : pid: %d - new kid number: %d\n", argv[0], getpid(), kids);100 gprint (GP_ERR, "%s : pid: %d - new kid number: %d\n", argv[0], getpid(), kids); 101 101 } 102 102 … … 110 110 if (ntohl(auth_token) != COMMAND_KEY) { 111 111 if (IPPC_DEFAULT_VERBOSITY > 1) { 112 fprintf(stderr, "%s : pid: %d - invalid authentication key\n", argv[0], getpid());112 gprint (GP_ERR, "%s : pid: %d - invalid authentication key\n", argv[0], getpid()); 113 113 } 114 114 … … 124 124 125 125 if (IPPC_DEFAULT_VERBOSITY > 1) { 126 fprintf(stderr, "%s : pid: %d - recieved: %s\n", argv[0], getpid(), buffer);126 gprint (GP_ERR, "%s : pid: %d - recieved: %s\n", argv[0], getpid(), buffer); 127 127 } 128 128 … … 131 131 if (status != 0) { 132 132 if (IPPC_DEFAULT_VERBOSITY > 1) { 133 fprintf(stderr, "%s : pid: %d - command failed - code: %d\n", argv[0], getpid(), status);133 gprint (GP_ERR, "%s : pid: %d - command failed - code: %d\n", argv[0], getpid(), status); 134 134 } 135 135 netSafe = htons(status); … … 137 137 } else { 138 138 if (IPPC_DEFAULT_VERBOSITY > 1) { 139 fprintf(stderr, "%s : pid: %d - command successful\n", argv[0], getpid());139 gprint (GP_ERR, "%s : pid: %d - command successful\n", argv[0], getpid()); 140 140 } 141 141 netSafe = htons(status);
Note:
See TracChangeset
for help on using the changeset viewer.
