Projects
Browse Source     Search     Timeline     Wiki

Changeset 23293

Show
Ignore:
Timestamp:
07/03/07 12:53:19 (17 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5247777> STD:VSC nohup tests failing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/libvproc.c

    r23264 r23293  
    159159        } 
    160160 
    161         if (vproc_swap_complex(NULL, VPROC_GSK_ENVIRONMENT, NULL, &output_obj) == NULL) { 
    162                 if (launch_data_get_type(output_obj) == LAUNCH_DATA_DICTIONARY) { 
    163                         launch_data_dict_iterate(output_obj, setup_env_hack, NULL); 
    164                         launch_data_free(output_obj); 
     161        /* XXX We need to give 'nohup' a better API after Leopard ships */ 
     162        if (getprogname() && strcmp(getprogname(), "nohup") != 0) { 
     163                if (vproc_swap_complex(NULL, VPROC_GSK_ENVIRONMENT, NULL, &output_obj) == NULL) { 
     164                        if (launch_data_get_type(output_obj) == LAUNCH_DATA_DICTIONARY) { 
     165                                launch_data_dict_iterate(output_obj, setup_env_hack, NULL); 
     166                                launch_data_free(output_obj); 
     167                        } 
    165168                } 
    166169        }