| 203 | |
| 204 | |
| 205 | void usage(char **argv) |
| 206 | { |
| 207 | fprintf(stderr, "\nUSAGE: %s [options]\n\n", argv[0]); |
| 208 | fprintf(stderr, "Options:\n"); |
| 209 | fprintf(stderr, "-display <d> = The X display to which to draw the rendered frames received from\n"); |
| 210 | fprintf(stderr, " the VirtualGL Faker\n"); |
| 211 | fprintf(stderr, " (default: read from the DISPLAY environment variable)\n"); |
| 212 | fprintf(stderr, "-port <p> = TCP port to use for connections from the VirtualGL Faker\n"); |
| 213 | fprintf(stderr, " (default: automatically select a free port)\n"); |
| 214 | fprintf(stderr, "-ipv6 = Use IPv6 sockets\n"); |
| 215 | fprintf(stderr, "-detach = Detach from console (used by vglconnect)\n"); |
| 216 | fprintf(stderr, "-force = Force the VirtualGL Client to run, even if there is already another\n"); |
| 217 | fprintf(stderr, " instance running on the same X display (use with caution)\n"); |
| 218 | fprintf(stderr, "-kill = Kill all detached VirtualGL Client processes running under this user ID\n"); |
| 219 | fprintf(stderr, "-l = Redirect all output to <file>\n"); |
| 220 | fprintf(stderr, "-v = Display version information\n"); |
| 221 | fprintf(stderr, "-x = Use X11 drawing (default)\n"); |
| 222 | fprintf(stderr, "-gl = Use OpenGL drawing\n\n"); |
| 223 | exit(1); |
| 224 | } |
| 225 | |
| 226 | |
| 227 | void daemonize(void) |