Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: conserver: users
Re: [SPAM] Re: Console taking 100% CPU
 

Index | Next | Previous | View Flat


cfowler at outpostsentinel

Dec 14, 2010, 1:59 PM


Views: 1054
Permalink
Re: [SPAM] Re: Console taking 100% CPU

On Tue, 2010-12-14 at 16:54 -0500, Chris Marget wrote:
> read(0, "", 8192) = 0
> select(4, [0 3], [], NULL, NULL) = 1 (in [0])
> read(0, "", 8192) = 0
> select(4, [0 3], [], NULL, NULL) = 1 (in [0])
> read(0, "", 8192) = 0

select() has seen STDIN ready to be read.
read() reads 0 bytes. This is an EOF condition.

Easy. Fix the code so that when reading from 0 if 0 bytes are read is
restores the terminal and exits.


_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users

Subject User Time
Re: [SPAM] Re: Console taking 100% CPU cfowler at outpostsentinel Dec 14, 2010, 1:59 PM
    Re: [SPAM] Re: Console taking 100% CPU chris at marget Dec 14, 2010, 2:15 PM
    Re: [SPAM] Re: Console taking 100% CPU tls at coyotepoint Dec 14, 2010, 2:24 PM
        Re: [SPAM] Re: [SPAM] Re: Console taking 100% CPU cfowler at outpostsentinel Dec 14, 2010, 2:33 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.