This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Syslog fixes a bug?


Hey,

I have a program that dies mysteriously.

If I use syslog() to attempt to write data and see where it dies, it
lives and works perfectly.

If I comment out the syslog() function call, the program crashes every time.

This is entirely reliable, have tested it 10 times commented +
uncommented.  It is a line of static text, ie:
syslog(LOG_INFO,"hello");

Why / how would this affect my program's execution?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]