Browse Source

Print help if no arguments are given

git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@9 4a9f3682-ca7b-49a8-9a55-ba4640e46f83
master
Stefan Bühler 13 years ago
parent
commit
b24f7094c3
  1. 5
      src/spawn-fcgi.c

5
src/spawn-fcgi.c

@ -306,6 +306,11 @@ int main(int argc, char **argv) {
int nofork = 0;
struct sockaddr_un un;
if (argc < 2) { /* no arguments given */
show_help();
return -1;
}
i_am_root = (getuid() == 0);
while (-1 != (o = getopt(argc, argv, "c:f:g:hna:p:u:vC:F:s:P:"))) {

Loading…
Cancel
Save