Ticket #3572: 3572-daemonize-typo.diff

File 3572-daemonize-typo.diff, 1.1 KB (added by Nick Morrott <knowledgejunkie@…>, 17 years ago)

Trivial patch to fix typo in daemonize error code

  • mythtv/libs/libmyth/exitcodes.h

     
    4848#define BACKEND_EXIT_CAP_CARD_SETUP_ERROR         GENERIC_EXIT_START-3
    4949#define BACKEND_EXIT_OPENING_PIDFILE_ERROR        GENERIC_EXIT_START-4
    5050#define BACKEND_EXIT_OPENING_VLOCKFILE_ERROR      GENERIC_EXIT_START-5
    51 #define BACKEND_EXIT_DEAMONIZING_ERROR            GENERIC_EXIT_START-6
     51#define BACKEND_EXIT_DAEMONIZING_ERROR            GENERIC_EXIT_START-6
    5252
    5353#define BACKEND_BUGGY_EXIT_NO_BIND_MAIN           GENERIC_EXIT_START-7
    5454#define BACKEND_BUGGY_EXIT_NO_BIND_STATUS         GENERIC_EXIT_START-8
  • mythtv/programs/mythbackend/main.cpp

     
    463463        if (daemon(0, 1) < 0)
    464464        {
    465465            perror("daemon");
    466             return BACKEND_EXIT_DEAMONIZING_ERROR;
     466            return BACKEND_EXIT_DAEMONIZING_ERROR;
    467467        }
    468468
    469469