Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] using rusage
- Date: Fri, 20 Jun 2008 16:39:00 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: Re: [tlug] using rusage
- References: <78d7dd350806181930i6acda17co682c322d3a7872af@mail.gmail.com> <20080619035005.GB11561@lucky.cynic.net> <78d7dd350806190155k328d24bcjcf61cb707c42045c@mail.gmail.com> <20080619114706.GA15943@lucky.cynic.net> <d8fcc0800806191638u4afa8ac9v62409fe0305ad233@mail.gmail.com> <20080620001947.GD19792@lucky.cynic.net>
2008/6/20 Curt Sampson <cjs@example.com>: > What's the difference in the signal handling? From the BSD manpages, it > looks as if both treat signals in the same way. Maybe they got it right on BSD. From the Linux manpage: BUGS sleep() may be implemented using SIGALRM; mixing calls to alarm() and sleep() is a bad idea. Using longjmp() from a signal handler or modifying the handling of SIGALRM while sleeping will cause undefined results. I believe that it was Stevens's "Advanced Programming in the UNIX Environment" that clued me in to that bug. > And why do you think nanosleep will get you closer than sleep? Again, from Stevens (if my flaky memory serves), I seem to remember that some Unices gave you worse resolution for sleep(3) than for usleep(2) or nanosleep(3). Am I mis-remembering? -- Cheers, Josh
- Follow-Ups:
- Re: [tlug] using rusage
- From: Edward Middleton
- Re: [tlug] using rusage
- From: Curt Sampson
- References:
- [tlug] using rusage
- From: Hung Nguyen Vu
- Re: [tlug] using rusage
- From: Curt Sampson
- Re: [tlug] using rusage
- From: Hung Nguyen Vu
- Re: [tlug] using rusage
- From: Curt Sampson
- Re: [tlug] using rusage
- From: Josh Glover
- Re: [tlug] using rusage
- From: Curt Sampson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] First FF3.0 bug? F6 doesn't work
- Next by Date: Re: [tlug] using rusage
- Previous by thread: Re: [tlug] using rusage [Josh, put the coke down, Scott tell the cat 'scat!]'
- Next by thread: Re: [tlug] using rusage
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links