Changeset bdda8c2 in git for Singular/fereadl.c


Ignore:
Timestamp:
Apr 9, 2013, 4:39:42 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
2d5ff537ab672bcbb2ca73df6830672f38b1ea63
Parents:
bc0d32def5d3461a77eed40c1e1a3d254811858a
Message:
add: handling signals in system calls, p2
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fereadl.c

    rbc0d32 rbdda8c2  
    195195      #endif
    196196      /* OB: why this ? HS: char t_buf[128] does not work with glibc2 systems */
    197       char *t_buf=(char *)omAlloc(128); 
     197      char *t_buf=(char *)omAlloc(128);
    198198      /*char t_buf[128];*/
    199199      char *temp;
     
    325325    /* check for CSI */
    326326    c='\0';
    327     read (STDIN_FILENO, &c, 1);
     327    while((-1 == read (STDIN_FILENO, &c, 1)) && (errno == EINTR));
    328328    if (c == '[')
    329329    {
    330330      /* get command character */
    331331      c='\0';
    332       read (STDIN_FILENO, &c, 1);
     332      while((-1 == read (STDIN_FILENO, &c, 1)) && (errno == EINTR));
    333333      switch (c)
    334334      {
     
    415415          tv.tv_sec = 0;
    416416          tv.tv_usec = 0;
    417           #ifdef hpux
    418             sel = select (STDIN_FILENO+1, (int *)fdset.fds_bits, NULL, NULL, &tv);
    419           #else
    420             sel = select (STDIN_FILENO+1, &fdset, NULL, NULL, &tv);
    421           #endif
     417          do
     418          {
     419            sel = select (STDIN_FILENO+1,
     420#ifdef hpux
     421                          (int *)fdset.fds_bits,
     422#else
     423                          &fdset,
     424#endif
     425                          NULL, NULL, &tv);
     426          } while( (sel == -1) && (errno == EINTR) );
    422427          if (sel==0)
    423428            fe_temp_reset();
     
    770775    if (fe_rl_hdl==NULL) { return 1;}
    771776
    772     fe_filename_completion_function= 
     777    fe_filename_completion_function=
    773778      dynl_sym(fe_rl_hdl, "filename_completion_function");
    774779    if (fe_filename_completion_function==NULL) { res=3; break; }
     
    825830extern int history_total_bytes();
    826831extern int write_history (const char *);
    827 #endif   
     832#endif
    828833void fe_reset_input_mode ()
    829834{
Note: See TracChangeset for help on using the changeset viewer.