/[baselayout]/trunk/src/rc-plugin.c
Gentoo

Diff of /trunk/src/rc-plugin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2632 Revision 2633
41 return; 41 return;
42 42
43 files = rc_ls_dir (NULL, RC_PLUGINDIR, 0); 43 files = rc_ls_dir (NULL, RC_PLUGINDIR, 0);
44 STRLIST_FOREACH (files, file, i) { 44 STRLIST_FOREACH (files, file, i) {
45 char *p = rc_strcatpaths (RC_PLUGINDIR, file, NULL); 45 char *p = rc_strcatpaths (RC_PLUGINDIR, file, NULL);
46 /*
47 * We load the use RTLD_NOW so that we know it works
48 * as if we have any unknown symbols when we run then the
49 * program bails out in rc_plugin_run which is very very bad.
50 */
46 void *h = dlopen (p, RTLD_LAZY); 51 void *h = dlopen (p, RTLD_NOW);
47 char *func; 52 char *func;
48 void *f; 53 void *f;
49 int len; 54 int len;
50 55
51 if (! h) { 56 if (! h) {
52 eerror ("dlopen `%s': %s", p, dlerror ()); 57 eerror ("dlopen: %s", dlerror ());
53 free (p); 58 free (p);
54 continue; 59 continue;
55 } 60 }
56 61
57 func = file; 62 func = file;

Legend:
Removed from v.2632  
changed lines
  Added in v.2633

  ViewVC Help
Powered by ViewVC 1.1.20