All of lore.kernel.org
 help / color / mirror / Atom feed
* Syslog - doubt
@ 2002-06-05 15:32 Suriya Narayanan M S
  2002-06-05 18:41 ` Jos Lemmerling
  2002-06-05 18:51 ` Steven Smith
  0 siblings, 2 replies; 3+ messages in thread
From: Suriya Narayanan M S @ 2002-06-05 15:32 UTC (permalink / raw)
  To: linux-newbie

Hi all,
	The following program writes 2 messages to
syslog
/********** Begin code ***********/
#include <syslog.h>
int main()
{
        openlog("Test of syslog",0,0);
        syslog(LOG_EMERG,"Hello World\n");
        syslog(LOG_EMERG,"Good Bye World\n");
        closelog();
        return 0;
}
/**********End code ***************/

If someone executes this program repeatedly
of from a loop, syslog would become too large.
Is something wrong?  Can access to syslog
be restrcted?

Bye,
Suriya Narayanan M S
-- 
Guru Brahma Gurur Vishnu
Gurur Dhevo Maheshwaraha
Gurur Saakshaath Parabramha
Thasmai Shree Gurave Namaha

Public key at www.keyserver.net
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-05 18:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-05 15:32 Syslog - doubt Suriya Narayanan M S
2002-06-05 18:41 ` Jos Lemmerling
2002-06-05 18:51 ` Steven Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.