mirror of https://github.com/GNOME/gimp.git
use g_io_channel_close/unref pairs instead of close in plug_in_open().
* app/plug_in.c: use g_io_channel_close/unref pairs instead of close in plug_in_open().
This commit is contained in:
parent
9843e97f72
commit
28a4c66e32
|
@ -1,3 +1,8 @@
|
|||
1999-03-08 Jay Cox <jaycox@earthlink.net>
|
||||
|
||||
* app/plug_in.c: use g_io_channel_close/unref pairs instead of close
|
||||
in plug_in_open().
|
||||
|
||||
1999-03-07 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
Second batch of Win32 merging. This time also some Unix code is
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
|
@ -1131,8 +1131,13 @@ plug_in_open (PlugIn *plug_in)
|
|||
|
||||
if (plug_in->pid == 0)
|
||||
{
|
||||
close(plug_in->my_read);
|
||||
close(plug_in->my_write);
|
||||
g_io_channel_close (plug_in->my_read);
|
||||
g_io_channel_unref (plug_in->my_read);
|
||||
plug_in->my_read = NULL;
|
||||
g_io_channel_close (plug_in->my_write);
|
||||
g_io_channel_unref (plug_in->my_write);
|
||||
plug_in->my_write = NULL;
|
||||
|
||||
/* Execute the filter. The "_exit" call should never
|
||||
* be reached, unless some strange error condition
|
||||
* exists.
|
||||
|
|
Loading…
Reference in New Issue