fprintf(stderr, "Cannot exceed hard limit for open files");
FPRINTF(stderr, "Cannot exceed hard limit for open files");
void InstallUnixSignalHandlers(const char *ProgramName){  PL_strncpy(_progname,ProgramName, (sizeof(_progname)-1) );#if defined(NTO) /* Neutrino need this to free shared memory in case of a crash */  signal(SIGTERM, abnormal_exit_handler);  signal(SIGQUIT, abnormal_exit_handler);  signal(SIGINT,  abnormal_exit_handler);  signal(SIGHUP,  abnormal_exit_handler);  signal(SIGSEGV, abnormal_exit_handler);  signal(SIGILL,  abnormal_exit_handler);  signal(SIGABRT, abnormal_exit_handler);/* Tell the OS it can page any part of this program to virtual memory */  munlockall();#elif defined(CRAWL_STACK_ON_SIGSEGV)  signal(SIGSEGV, ah_crap_handler);  signal(SIGILL, ah_crap_handler);  signal(SIGABRT, ah_crap_handler);#endif // CRAWL_STACK_ON_SIGSEGV#if defined(DEBUG) && defined(LINUX)  char *text = PR_GetEnv("MOZ_MEM_LIMIT");  if (text)   {    long m = atoi(text);    m *= (1024*1024);        struct rlimit r;    r.rlim_cur = m;    r.rlim_max = m;    setrlimit(RLIMIT_AS, &r);  }#endif#if defined(SOLARIS)    #define NOFILES 512    // Boost Solaris file descriptors    {	struct rlimit rl;		if (getrlimit(RLIMIT_NOFILE, &rl) == 0)	    if (rl.rlim_cur < NOFILES) {		rl.rlim_cur = NOFILES;		if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {		    perror("setrlimit(RLIMIT_NOFILE)");		    fprintf(stderr, "Cannot exceed hard limit for open files");		}#if defined(DEBUG)	    	if (getrlimit(RLIMIT_NOFILE, &rl) == 0)		    printf("File descriptors set to %d\n", rl.rlim_cur);#endif //DEBUG	    }    }#endif //SOLARIS}