| version 1.5, 2001/09/21 19:58:47 |
version 1.6, 2001/12/02 23:30:07 |
|
|
| * license: GNU General Public License |
* license: GNU General Public License |
| * |
* |
| * $Log$ |
* $Log$ |
| |
* Revision 1.6 2001/12/02 23:30:07 jombik9 |
| |
* A lot of new functions added. |
| |
* Various improvements. |
| |
* |
| * Revision 1.5 2001/09/21 19:58:47 host8 |
* Revision 1.5 2001/09/21 19:58:47 host8 |
| * Cosmetics changes |
* Cosmetics changes |
| * |
* |
|
|
| #include "fd.h" |
#include "fd.h" |
| #include "message.h" |
#include "message.h" |
| #include "sigserv.h" |
#include "sigserv.h" |
| |
#include "cfglocal.h" |
| |
|
| #if MENU |
#if MENU |
| # include "menu.h" |
# include "menu.h" |
| Line 118 main(argc, argv) |
|
| Line 123 main(argc, argv) |
|
| menu_curses_init(); |
menu_curses_init(); |
| #endif |
#endif |
| |
|
| ptbl = proctable_get_from_cmdline(argc, argv); |
/* ptbl = proctable_get_from_cmdline(argc, argv); */ |
| |
ptbl = cfglocal_process(argc, argv); |
| |
|
| if (ptbl == NULL) { |
if (ptbl == NULL) { |
| msg_error_print("command line fails, terminating\n"); |
msg_error_print("command line fails, terminating\n"); |
| Line 131 main(argc, argv) |
|
| Line 137 main(argc, argv) |
|
| |
|
| if (proctable_add_std_process(&ptbl) < 0 || proctable_update(ptbl) < 0) { |
if (proctable_add_std_process(&ptbl) < 0 || proctable_update(ptbl) < 0) { |
| 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 |
| Line 199 main(argc, argv) |
|
| Line 205 main(argc, argv) |
|
| break; |
break; |
| |
|
| default: |
default: |
| if (FD_ISSET(0, &fds)) { |
|
| #if MENU |
#if MENU |
| |
if (FD_ISSET(0, &fds)) { |
| int c; |
int c; |
| c = getch(); |
c = getch(); |
| switch (c) { |
switch (c) { |
| Line 218 main(argc, argv) |
|
| Line 224 main(argc, argv) |
|
| break; |
break; |
| |
|
| } |
} |
| #endif /* #if MENU */ |
|
| |
|
| } |
} |
| |
#endif /* #if MENU */ |
| |
|
| /* Read and transfer data. */ |
/* Read and transfer data. */ |
| proctable_read(&ptbl, &fds); |
proctable_read(&ptbl, &fds); |