pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/hiawatha



Module Name:    pkgsrc
Committed By:   hauke
Date:           Wed Dec 18 16:44:36 UTC 2024

Modified Files:
        pkgsrc/www/hiawatha: distinfo
Added Files:
        pkgsrc/www/hiawatha/patches: patch-src_hiawatha.c

Log Message:
Solarish are missing RLIMIT_NPROC


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/www/hiawatha/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/hiawatha/patches/patch-src_hiawatha.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/hiawatha/distinfo
diff -u pkgsrc/www/hiawatha/distinfo:1.11 pkgsrc/www/hiawatha/distinfo:1.12
--- pkgsrc/www/hiawatha/distinfo:1.11   Sun Dec  1 22:30:06 2024
+++ pkgsrc/www/hiawatha/distinfo        Wed Dec 18 16:44:36 2024
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2024/12/01 22:30:06 hauke Exp $
+$NetBSD: distinfo,v 1.12 2024/12/18 16:44:36 hauke Exp $
 
 BLAKE2s (hiawatha-v11.6.tar.gz) = cb18a61b34c9ae64a1c21bdff6c57562aecddeaa15f6d4da6ab2e278dd81ffa0
 SHA512 (hiawatha-v11.6.tar.gz) = e0b23dd0626ea9850469feefd3f4c69119230e327c63ab4b68442abe695a232c5b4ea4250791cd00fe730c1c6ff3a0a66fafccde38c029d43b4506b1c817dd53
@@ -7,4 +7,5 @@ SHA1 (patch-CMakeLists.txt) = a96e51545a
 SHA1 (patch-config_hiawatha.conf.in) = 8a58402b0201ec6cd661f5d949e127edfe4b693a
 SHA1 (patch-extra_letsencrypt_letsencrypt.conf.in) = 718d44e883f8206fd88480c5503d962198992347
 SHA1 (patch-mbedtls_library_ssl_tls13_generic.c) = 292b21dfdb8b19309da8faa807fa200720b5e580
+SHA1 (patch-src_hiawatha.c) = 4302f7f959799fc79bda6eda63901fb5b0fc3993
 SHA1 (patch-src_tls.c) = de1631f6ceff7a903964bcf5171e7ea24e933e71

Added files:

Index: pkgsrc/www/hiawatha/patches/patch-src_hiawatha.c
diff -u /dev/null pkgsrc/www/hiawatha/patches/patch-src_hiawatha.c:1.1
--- /dev/null   Wed Dec 18 16:44:36 2024
+++ pkgsrc/www/hiawatha/patches/patch-src_hiawatha.c    Wed Dec 18 16:44:36 2024
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_hiawatha.c,v 1.1 2024/12/18 16:44:36 hauke Exp $
+
+Solarish are missing RLIMIT_NPROC
+
+--- src/hiawatha.c.orig        2024-12-18 16:38:01.001436946 +0000
++++ src/hiawatha.c
+@@ -791,10 +791,11 @@ int run_webserver(t_settings *settings) 
+        */
+       if (config->set_rlimits) {
+               resource_limit.rlim_max = resource_limit.rlim_cur = config->total_connections + 3;
++#ifdef RLIMIT_NPROC
+               if (setrlimit(RLIMIT_NPROC, &resource_limit) != 0) {
+                       fprintf(stderr, "Error setting RLIMIT_NPROC.\n");
+               }
+-
++#endif /* RLIMIT_NPROC */
+               /* system: system.log, exploit.log, garbage.log, debug.log, all bindings, tomahawk connections
+                * per child: socket, access.log, error.log, 3 CGI pipes
+                */



Home | Main Index | Thread Index | Old Index