daemon.c
changeset 79 1499176750b9
parent 77 49e0babccb23
child 131 b5ad49852adc
equal deleted inserted replaced
78:e87e0fe4a7db 79:1499176750b9
    47     struct stat st;
    47     struct stat st;
    48     int fd;
    48     int fd;
    49 
    49 
    50     if (argc == 2) {
    50     if (argc == 2) {
    51         if (!strcmp (argv[1], "-h")) {
    51         if (!strcmp (argv[1], "-h")) {
    52             printf ("Usage: %s [-f|]\n", argv[0]);
    52             printf ("Usage: %s [-f|-h]\n", argv[0]);
    53             printf ("Report bugs to mbroeker@largo.homelinux.org\n");
    53             printf ("Report bugs to mbroeker@largo.homelinux.org\n");
    54             exit (EXIT_SUCCESS);
    54             exit (EXIT_SUCCESS);
    55         } else if (!strcmp (argv[1], "-f")) {
    55         } else if (!strcmp (argv[1], "-f")) {
    56             if (unlink (LOCK_FILE) != 0)
    56             if (unlink (LOCK_FILE) != 0)
    57                 exit (EXIT_FAILURE);
    57                 exit (EXIT_FAILURE);