Changeset 661
- Timestamp:
- 04/26/13 00:49:52 (12 years ago)
- Location:
- trunk/launch/launch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/launch/launch/README
r651 r661 224 224 225 225 1.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 227 228 - read Info.plists embedded in all Mach-O binaries (e.g. hdiutil) 228 229 - display alias targets 230 - now requires Mac OS X 10.6 or later 229 231 1.1 - 30 October 2006 230 232 - -L: send "launch" (ascr/noop) event to app, bypasses automatic -
trunk/launch/launch/VERSION
r651 r661 1 1.1.1d 41 1.1.1d5 -
trunk/launch/launch/main.c
r651 r661 37 37 const char *APP_NAME; 38 38 39 #define VERSION "1.1.1d 4"39 #define VERSION "1.1.1d5" 40 40 41 41 #define STRBUF_LEN 1024 … … 944 944 } 945 945 946 void 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 946 959 int main (int argc, char * const argv[]) { 947 960 OSStatus err; … … 1001 1014 if (TEMPFILE != NULL) { 1002 1015 // the application may take a while to finish opening the temporary file 1003 daemon(0, 0);1016 background(); 1004 1017 sleep(60); 1005 1018 unlink(TEMPFILE);
Note:
See TracChangeset
for help on using the changeset viewer.