| version 1.2, 2001/09/21 19:44:51 |
version 1.3, 2001/09/21 19:54:45 |
|
|
| * license: GNU General Public License |
* license: GNU General Public License |
| * |
* |
| * $Log$ |
* $Log$ |
| |
* Revision 1.3 2001/09/21 19:54:45 host8 |
| |
* Cosmetics changes in *.c |
| |
* |
| * Revision 1.2 2001/09/21 19:44:51 host8 |
* Revision 1.2 2001/09/21 19:44:51 host8 |
| * Added $Log$ keyword substitution |
* Added $Log$ |
| |
* Added Revision 1.3 2001/09/21 19:54:45 host8 |
| |
* Added Cosmetics changes in *.c |
| |
* Added keyword substitution |
| * |
* |
| */ |
*/ |
| |
|
|
|
| #endif |
#endif |
| |
|
| /* Global pointer to argv[0] (program name). */ |
/* Global pointer to argv[0] (program name). */ |
| char *argv0; |
char *argv0; |
| |
|
| void exit_fnc(void) |
void exit_fnc(void) |
| { |
{ |
| /* |
/* |
| msg_print("exit_fnc(): ep shutting down, sending all process SIGTERM...\n"); |
msg_print("exit_fnc(): ep shutting down, sending all process SIGTERM...\n"); |
| Line 118 main(argc, argv) |
|
| Line 124 main(argc, argv) |
|
| if (ptbl == NULL) { |
if (ptbl == NULL) { |
| msg_error_print("command line fails, terminating\n"); |
msg_error_print("command line fails, terminating\n"); |
| return 1; |
return 1; |
| } |
} |
| #if DEBUG |
#if DEBUG |
| else |
else |
| msg_debug_print("command line parsing: OK\n"); |
msg_debug_print("command line parsing: OK\n"); |
| Line 128 main(argc, argv) |
|
| Line 134 main(argc, argv) |
|
| msg_error_print("failure during operations with process table\n", |
msg_error_print("failure during operations with process table\n", |
| argv[0]); |
argv[0]); |
| return 1; |
return 1; |
| } |
} |
| #if DEBUG |
#if DEBUG |
| else |
else |
| msg_debug_print("proctable parsing: OK\n"); |
msg_debug_print("proctable parsing: OK\n"); |
| Line 176 main(argc, argv) |
|
| Line 182 main(argc, argv) |
|
| |
|
| /* Main loop. */ |
/* Main loop. */ |
| while (1) { |
while (1) { |
| /* Set fds. */ |
/* Set fds. */ |
| FD_ZERO(&fds); |
FD_ZERO(&fds); |
| FD_SET(0, &fds); |
FD_SET(0, &fds); |
| for (i = 0; ptbl[i] != NULL; i++) |
for (i = 0; ptbl[i] != NULL; i++) |