Commit 28a4c66e authored by jaycox's avatar jaycox

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().
parent 9843e97f
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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment