Diff for ep/src/main.c between version 1.11 and 1.12
| version 1.11, 2002/02/11 16:17:55 |
version 1.12, 2002/02/12 00:34:22 |
| Line 214 main(argc, argv) |
|
| Line 214 main(argc, argv) |
|
| } |
} |
| |
|
| /* TODO: if closed fd 0, always use timeout */ |
/* TODO: if closed fd 0, always use timeout */ |
| if (1 || pid == 1) { |
if (pid == 1) { |
| tv.tv_sec = 1; |
tv.tv_sec = 1; |
| tv.tv_usec = 1000; |
tv.tv_usec = 1000; |
| } |
} |
| |
|
| ret = select(FD_SETSIZE, &rfds, NULL, &efds, 1 || pid == 1 ? &tv : NULL); |
ret = select(FD_SETSIZE, &rfds, NULL, &efds, pid == 1 ? &tv : NULL); |
| |
|
| if (ret < 0) { |
if (ret < 0) { |
| msg_error_print("select() failure: %s\n", strerror(errno)); |
msg_error_print("select() failure: %s\n", strerror(errno)); |
| Line 255 main(argc, argv) |
|
| Line 255 main(argc, argv) |
|
| msg_debug_print("main(): repeating proctable_read()\n"); |
msg_debug_print("main(): repeating proctable_read()\n"); |
| #endif |
#endif |
| } |
} |
| |
|
| #if DEBUG |
#if DEBUG |
| proctable_print(ptbl); |
proctable_print(ptbl); |
| #endif |
#endif |
Platon Group <platon@platon.org> http://platon.org/
|
|