~ubuntu-branches/ubuntu/saucy/texmacs/saucy

« back to all changes in this revision

Viewing changes to plugins/shell/src/tm_shell.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-11-05 14:47:00 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20101105144700-t2ju0m1o53cqtyed
Tags: 1:1.0.7.7-1
* New Upstream Release.
* Updated patches/09_ipa.dpatch for new upstream sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 
87
87
static void
88
88
shell_output (bool hide= false) {
89
 
  static struct timeval tv = {0, 100};
 
89
  static struct timeval tv;
90
90
  int output_max= 1024;
91
91
  output = (charp) malloc (output_max);
92
92
  output_pos= 0;
95
95
    fd_set rfds;
96
96
    FD_ZERO (&rfds);
97
97
    FD_SET (master, &rfds);
 
98
    tv.tv_sec = 0;
 
99
    tv.tv_usec = 10000;
98
100
    int r = select (master+1, &rfds, NULL, NULL, &tv);
99
101
    if (r == 0) continue;
100
102
    if (r == -1) continue;