diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-27 19:00:03 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-27 19:00:03 -0700 |
commit | a62f30075347ce86c219db2344edaf2e5eecb015 (patch) | |
tree | 36a620ef887288f9010c4c6fcb5595c884422ede /postfork.cpp | |
parent | 0bc644abf06d1cf903ed7bf59302894f80d18971 (diff) |
Make the color picker cell borders appear correctly in Firefox
Diffstat (limited to 'postfork.cpp')
-rw-r--r-- | postfork.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/postfork.cpp b/postfork.cpp index 04defa35..e9d5e2ae 100644 --- a/postfork.cpp +++ b/postfork.cpp @@ -166,9 +166,7 @@ static int handle_child_io( io_data_t *io ) if( io->fd > 2 ) { - /* - Make sure the fd used by this redirection is not used by e.g. a pipe. - */ + /* Make sure the fd used by this redirection is not used by e.g. a pipe. */ free_fd( io, io->fd ); } @@ -242,9 +240,7 @@ static int handle_child_io( io_data_t *io ) case IO_BUFFER: case IO_PIPE: { - int write_pipe; - - write_pipe = !io->is_input; + unsigned int write_pipe_idx = (io->is_input ? 0 : 1); /* debug( 0, L"%ls %ls on fd %d (%d %d)", @@ -254,7 +250,7 @@ static int handle_child_io( io_data_t *io ) io->param1.pipe_fd[0], io->param1.pipe_fd[1]); */ - if( dup2( io->param1.pipe_fd[write_pipe], io->fd ) != io->fd ) + if( dup2( io->param1.pipe_fd[write_pipe_idx], io->fd ) != io->fd ) { debug_safe( 1, LOCAL_PIPE_ERROR ); perror( "dup2" ); |