equal
deleted
inserted
replaced
449 * The command list is not designed to cover all cases. But it's fast, and does |
449 * The command list is not designed to cover all cases. But it's fast, and does |
450 * not depend on the server. |
450 * not depend on the server. |
451 */ |
451 */ |
452 static int isunsupported(int argc, const char *argv[]) |
452 static int isunsupported(int argc, const char *argv[]) |
453 { |
453 { |
454 enum { SERVE = 1, |
454 enum { |
455 DAEMON = 2, |
455 SERVE = 1, |
456 SERVEDAEMON = SERVE | DAEMON, |
456 DAEMON = 2, |
|
457 SERVEDAEMON = SERVE | DAEMON, |
457 }; |
458 }; |
458 unsigned int state = 0; |
459 unsigned int state = 0; |
459 int i; |
460 int i; |
460 /* use fcntl to test missing stdio fds */ |
461 /* use fcntl to test missing stdio fds */ |
461 if (fcntl(STDIN_FILENO, F_GETFD) == -1 || |
462 if (fcntl(STDIN_FILENO, F_GETFD) == -1 || |