Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
soc:2009:pravin:journal:pxekniferomomatic [2009/06/04 10:18] less1 |
soc:2009:pravin:journal:pxekniferomomatic [2009/06/04 10:22] less1 |
||
---|---|---|---|
Line 80: | Line 80: | ||
there is a loop which iterate over each image. but there was a break, which had to be removed. | there is a loop which iterate over each image. but there was a break, which had to be removed. | ||
<code> | <code> | ||
- | if ( have_images() ) { | + | if ( have_images() ) { |
- | for_each_image ( image ) { | + | for_each_image ( image ) { |
- | image_exec ( image ); | + | image_exec ( image ); |
- | /* break; */ /* commented so that second script will be executed -- pravin | + | /* break; */ /* commented so that second script will be executed -- pravin */ |
- | */ | + | } |
- | } | + | } else { |
- | } else { | + | |
</code> | </code> | ||
+ | Other change is done in //image/script.c// file inside function //script_exec()// where at end, it re-registers the script. | ||
+ | The second executable does not get executed when this line is there, so, I commented it out. | ||
+ | I am not sure what exactly is the problem, but my guess is that, \\ | ||
+ | re_register puts the script on top of the list, but older mapping where second script was loaded in memory gets messed up somehow. | ||
+ | <code> | ||
+ | rc = 0; | ||
+ | done: | ||
+ | /* Re-register image and return */ | ||
+ | register_image ( image ); /* commented so that next one will be executed -- pravin */ | ||
+ | return rc; | ||
+ | } | ||
+ | </code> | ||