/[xforms]/xforms/lib/cmd_br.c
ViewVC logotype

Diff of /xforms/lib/cmd_br.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by leeming, Thu Apr 24 09:35:34 2003 UTC revision 1.8 by leeming, Tue Sep 9 00:28:25 2003 UTC
# Line 252  fl_exe_command(const char *cmd, int bloc Line 252  fl_exe_command(const char *cmd, int bloc
252    
253      if (pipe(p_err) < 0 || pipe(p_inout) < 0)      if (pipe(p_err) < 0 || pipe(p_inout) < 0)
254      {      {
255          fl_snprintf(buf,sizeof(buf),          fl_snprintf(buf,sizeof(buf),
256                       "Can't create pipe - %s", fl_get_syserror_msg());                       "Can't create pipe - %s", fl_get_syserror_msg());
257          fprintf(stderr, "%s\n", buf);          fprintf(stderr, "%s\n", buf);
258          fl_addto_browser(logger->browser, buf);          fl_addto_browser(logger->browser, buf);
# Line 303  fl_exe_command(const char *cmd, int bloc Line 303  fl_exe_command(const char *cmd, int bloc
303                             (void *) ( long ) cur->pid);                             (void *) ( long ) cur->pid);
304          fl_add_io_callback(cur->fd_out,          fl_add_io_callback(cur->fd_out,
305                             FL_READ,                             FL_READ,
306                             io_cb,                             io_cb,
307                             (void *) ( long ) cur->pid);                             (void *) ( long ) cur->pid);
308      }      }
309    
# Line 333  fl_exe_command(const char *cmd, int bloc Line 333  fl_exe_command(const char *cmd, int bloc
333      sa.lpSecurityDescriptor = NULL;      sa.lpSecurityDescriptor = NULL;
334      if (!CreatePipe(&hPipeRead, &hPipeWrite, &sa, 255))      if (!CreatePipe(&hPipeRead, &hPipeWrite, &sa, 255))
335      {      {
336          fl_snprintf(buf, sizeof(buf), "Can't create pipe - %s",          fl_snprintf(buf, sizeof(buf), "Can't create pipe - %s",
337                      fl_get_syserror_msg());                      fl_get_syserror_msg());
338          fprintf(stderr, "%s\n", buf);          fprintf(stderr, "%s\n", buf);
339          fl_addto_browser(logger->browser, buf);          fl_addto_browser(logger->browser, buf);
# Line 498  fl_pclose(FILE * stream) Line 498  fl_pclose(FILE * stream)
498      fclose(stream);      fclose(stream);
499    
500      for (last = 0, cur = pidlist; cur && cur->fd_user != fd;      for (last = 0, cur = pidlist; cur && cur->fd_user != fd;
501           last = cur, cur = last->next)           last = cur, cur = last->next)
502          ;          ;
503    
504      if (!cur)      if (!cur)

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26