🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10602

Dormir indefinidamente

#10602
From: Rufus
Date: Sat, 16 Feb 2002 16:25
18 lines
1486 bytes
Hola, me ha surgido una duda de programacion y es:

�
Como se pone un proceso para que duerma indefinidamente (porque solo 
responderia a se�ales)

Con un 
while (1)
        sleep(X);

O existe una funcion con la que hacer esto

?

Si es con el bucle, como me temo, cual es el mejor valor de X, � el mas 
grande  posible? o es mejor alguno mas peque�o

Gracias y un saludo
Technical Details
Message-ID: <WJvb8.136987$sm5.605687@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!small.news.tele.dk!204.71.34.15!news-out.cwix.com!newsfeed.cwix.com!newsfeed.bcn.ttd.net!telenews.teleline.es!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,a7fa1177258c2ba4,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-02-16 08:26:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!small.news.tele.dk!204.71.34.15!news-out.cwix.com!newsfeed.cwix.com!newsfeed.bcn.ttd.net!telenews.teleline.es!not-for-mail
X-Trace-PostClient-IP: 217.125.115.23
From: Rufus <hiden@terra.es>
Subject: Dormir indefinidamente
Newsgroups: es.comp.os.linux.programacion
Lines: 20
User-Agent: KNode/0.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
Message-ID: <WJvb8.136987$sm5.605687@telenews.teleline.es>
Date: Sat, 16 Feb 2002 16:25:26 GMT
NNTP-Posting-Host: 10.20.31.4
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 1013876726 10.20.31.4 (Sat, 16 Feb 2002 17:25:26 MET)
NNTP-Posting-Date: Sat, 16 Feb 2002 17:25:26 MET
Organization: Terra Networks
X-Received-Date: Sat, 16 Feb 2002 17:25:26 MET (telenews.teleline.es)