src/jdk.packager/linux/native/launcher/launcher.cpp
branchJDK-8200758-branch
changeset 56982 e094d5483bd6
parent 56854 aedce3eaaf17
equal deleted inserted replaced
56963:eaca4369b068 56982:e094d5483bd6
    68 
    68 
    69     if (library != NULL) {
    69     if (library != NULL) {
    70         start_launcher start = (start_launcher)dlsym(library, "start_launcher");
    70         start_launcher start = (start_launcher)dlsym(library, "start_launcher");
    71         stop_launcher stop = (stop_launcher)dlsym(library, "stop_launcher");
    71         stop_launcher stop = (stop_launcher)dlsym(library, "stop_launcher");
    72 
    72 
    73         if (start(argc, argv) == true) {
    73         if (start != NULL && stop != NULL) {
    74             result = 0;
    74             if (start(argc, argv) == true) {
    75 
    75                 result = 0;
    76             if (stop != NULL) {
       
    77                 stop();
    76                 stop();
    78             }
    77             }
       
    78         } else {
       
    79             fprintf(stderr,
       
    80               "cannot find start_launcher and stop_launcher in libpackager.so");
    79         }
    81         }
    80 
    82 
    81         dlclose(library);
    83         dlclose(library);
    82     }
    84     }
    83 
    85