Re: [PATCH] Wait for external "convert" in pango-view



On Mon, 2008-04-28 at 11:07 -0400, Jamie Guinan wrote:
> Hi,
> 
> I tried "pango-view" in a script to render text to a file, and I found 
> that upon exit, the file doesn't exist for some fraction of a second, 
> which causes problems for the script when it tries to do something 
> with the output.
> 
> To illustrate,
> 
>   $ rm -f text.ppm; pango-view --backend=ft2 -q -o text.ppm -t 'Hi there!'; \
>       ls -l text.ppm; sleep 1; ls -l text.ppm
>   ls: cannot access text.ppm: No such file or directory
>   -rw-r--r-- 1 guinan guinan 18242 Apr 23 13:19 text.ppm
> 
> See attached patch for a fix.  I added a waitpid() call similar to the 
> one later in the same file.

Thanks.  Committed.

> -Jamie


-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



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