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/multimedia/mjpegtools/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/multimedia/mjpegtools/files/patch-mplex_main.cpp
--- mplex/main.cpp.orig	Wed Jun 20 13:40:39 2007
+++ mplex/main.cpp	Wed Jun 20 13:41:49 2007
@@ -38,6 +38,7 @@
 #endif
 #include <ctype.h>
 #include <math.h>
+#include <fcntl.h>
 #include "cpu_accel.h"
 #include "mjpeg_types.h"
 #include "mjpeg_logging.h"
@@ -107,6 +108,14 @@
 	{
 		mjpeg_error_exit1( "Could not open for writing: %s", cur_filename );
 	}
+       {
+               int     flags;
+
+               (void)fcntl(fileno(strm), F_GETFL, &flags);
+               (void)fcntl(fileno(strm), F_SETFL, flags & ~O_NONBLOCK);
+       }
+
+
 
 	return 0;
 }
@@ -143,6 +152,13 @@
 		mjpeg_error_exit1( "Could not open for writing: %s", cur_filename );
 	}
     segment_len = 0;
+       {
+               int     flags;
+
+               (void)fcntl(fileno(strm), F_GETFL, &flags);
+               (void)fcntl(fileno(strm), F_SETFL, flags & ~O_NONBLOCK);
+       }
+
 }
 
 void
@@ -200,6 +216,14 @@
 	{
 		mjpeg_error_exit1( "Unable to open file %s for reading.", bs_filename);
 	}
+
+       {
+               int     flags;
+
+               (void)fcntl(fileno(fileh), F_GETFL, &flags);
+               (void)fcntl(fileno(fileh), F_SETFL, flags & ~O_NONBLOCK);
+       }
+
 	filename = strcpy( new char[strlen(bs_filename)+1], bs_filename );
     streamname = filename;
 

Youez - 2016 - github.com/yon3zu
LinuXploit