comparison src/uicommon/gftpui.c @ 498:76c4e4cd108e

2004-7-12 Brian Masney <masneyb@gftp.org> * lib/sshv2.c - added sshv2_decode_file_attributes(). This is used by sshv2_get_next_file() and sshv2_get_file_size(). (sshv2_get_next_file_chunk) - if the error SSH_FX_FAILURE was returned, then do not return wrong message received from server to the user * lib/protocols.c (gftp_get_transfer_status) - when there is a transfer error, make sure that an incoming signal does not interrupt the timeout * src/gtk/gftp-gtk.c src/uicommon/gftpui.c - make sure the SIGCHLD signal handler reaps the zombies in the text port.
author masneyb
date Tue, 13 Jul 2004 02:44:35 +0000
parents 4376ffeab64e
children 39e9945288ea
comparison
equal deleted inserted replaced
497:e60a6ec4aa85 498:76c4e4cd108e
120 120
121 121
122 static RETSIGTYPE 122 static RETSIGTYPE
123 gftpui_common_sig_child (int signo) 123 gftpui_common_sig_child (int signo)
124 { 124 {
125 gftpui_common_child_process_done = 1; 125 int ret;
126
127 if (gftpui_common_child_process_done == -1)
128 {
129 /* Running from text port */
130 while (waitpid (-1, &ret, WNOHANG) > 0)
131 {
132 /* Nothing */
133 }
134 }
135 else
136 gftpui_common_child_process_done = 1;
126 } 137 }
127 138
128 139
129 void 140 void
130 gftpui_common_init (int *argc, char ***argv, gftp_logging_func logfunc) 141 gftpui_common_init (int *argc, char ***argv, gftp_logging_func logfunc)
142 gftp_read_config_file (share_dir); 153 gftp_read_config_file (share_dir);
143 if (gftp_parse_command_line (argc, argv) != 0) 154 if (gftp_parse_command_line (argc, argv) != 0)
144 exit (0); 155 exit (0);
145 156
146 gftpui_common_logfunc = logfunc; 157 gftpui_common_logfunc = logfunc;
158 gftpui_common_child_process_done = -1;
147 } 159 }
148 160
149 161
150 void 162 void
151 gftpui_common_about (gftp_logging_func logging_function, gpointer logdata) 163 gftpui_common_about (gftp_logging_func logging_function, gpointer logdata)