RSS/Atom feed Twitter
Site is read-only, email is disabled

Forking with exit main()

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Forking with exit main() Kate Yoak 24 Jan 06:03
  Forking with exit main() Michael J. Hammel 24 Jan 19:06
   Forking with exit main() Kate T. Yoak 24 Jan 19:10
  Forking with exit main() Kate T. Yoak 24 Jan 19:26
Kate Yoak
2009-01-24 06:03:25 UTC (almost 16 years ago)

Forking with exit main()

OK, so I have all the software I wanted. Gimp is awesome!

This is what I will be doing to use Gimp in modperl:

unless( fork()){ Gimp::on_net(\&do_stuff);
}else{
wait();
find_the_generated_image();
finish_responding_to_web_request(); };

Is anything going to come out and bite me?

Michael J. Hammel
2009-01-24 19:06:00 UTC (almost 16 years ago)

Forking with exit main()

On Fri, 2009-01-23 at 21:03 -0800, Kate Yoak wrote:

OK, so I have all the software I wanted. Gimp is awesome!

This is what I will be doing to use Gimp in modperl:

I may have missed earlier discussion on this, but are you using GIMP 2.6.x? If so, were did you get Gimp-Perl for it? I've tried the one from the download site for 2.2 but it doesn't compile. Or is this the net-fu package?

Kate T. Yoak
2009-01-24 19:10:21 UTC (almost 16 years ago)

Forking with exit main()

I may have missed earlier discussion on this, but are you using GIMP 2.6.x? If so, were did you get Gimp-Perl for it? I've tried the one from the download site for 2.2 but it doesn't compile. Or is this the net-fu package?

No, I am not. I am using 2.2 because I am running on CentOS and upgrading to 2.6 would require installing a head-spinning number of packages unsupported for the distro. I got scared and ran away. :-)

Kate T. Yoak
2009-01-24 19:26:16 UTC (almost 16 years ago)

Forking with exit main()

For posterity: this worked beautifully, with one modification:

This is what I will be doing to use Gimp in modperl:

unless( fork()){ Gimp::on_net(\&do_stuff);

CORE::exit main()

}else{
wait();
find_the_generated_image();
finish_responding_to_web_request(); };

The only problem with the whole thing is that I have to write a file to disk in order to pass the data to gimp. Nothing too terribly wrong with that, but it does feel a little silly! :-)