Re: fork ???

 Havoc> Just use fork(), it's cheap on Linux, certainly cheap enough for most
 Havoc> uses.

 Havoc> One example of using it is the gnome_execute_async() function in
 Havoc> libgnome, you could look at that code.

 Havoc> Also a UNIX programming book will have examples; try Linux Application
 Havoc> Development, Advanced Programming in the UNIX Environment, or
 Havoc> Beginning Linux Programming, those three are all worth owning.

You can also check the source code of ggv. It uses fork, then execvp
to run ghostscript. (check gtkgs.c)

Daniel M. German                  "The best computer is a man,
                                   and it's the only one
                                   that can be mass-produced
   W. Von Braun ->                 by unskilled labor."


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]