Changeset 661


Ignore:
Timestamp:
04/26/13 00:49:52 (6 years ago)
Author:
Nicholas Riley
Message:

VERSION: Updated for 1.1.1d5.

main.c: Replace use of daemon(3), which was deprecated in Mac OS X
10.5. Updated for 1.1.1d5.

README: Updated for 1.1.1d5.

Note: man page is out of date, needs updating before 1.1 is released.

Should also investigate enabling BROKEN_ARGUMENTS and either enabling
or removing BROKEN_AUTHORIZATION.

Location:
trunk/launch/launch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/launch/launch/README

    r651 r661  
    224224
    2252251.1.1 - unreleased
    226  - update error codes for OS X 10.8
     226 - update error codes and eliminate use of deprecated API for OS X
     227   10.8
    227228 - read Info.plists embedded in all Mach-O binaries (e.g. hdiutil)
    228229 - display alias targets
     230 - now requires Mac OS X 10.6 or later
    2292311.1 - 30 October 2006
    230232 - -L: send "launch" (ascr/noop) event to app, bypasses automatic
  • trunk/launch/launch/VERSION

    r651 r661  
    1 1.1.1d4
     11.1.1d5
  • trunk/launch/launch/main.c

    r651 r661  
    3737const char *APP_NAME;
    3838
    39 #define VERSION "1.1.1d4"
     39#define VERSION "1.1.1d5"
    4040
    4141#define STRBUF_LEN 1024
     
    944944}
    945945
     946void background() {
     947    if (fork() > 1)
     948        exit(0);
     949   
     950    int fd;
     951   
     952    if ( (fd = open("/dev/null", O_RDWR, 0)) != -1) {
     953        dup2(fd, STDIN_FILENO);
     954        dup2(fd, STDOUT_FILENO);
     955        dup2(fd, STDERR_FILENO);
     956    }
     957}
     958
    946959int main (int argc, char * const argv[]) {
    947960    OSStatus err;
     
    10011014    if (TEMPFILE != NULL) {
    10021015        // the application may take a while to finish opening the temporary file
    1003         daemon(0, 0);
     1016        background();
    10041017        sleep(60);
    10051018        unlink(TEMPFILE);
Note: See TracChangeset for help on using the changeset viewer.