equal
deleted
inserted
replaced
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 |