pkgsrc-WIP-changes archive

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

Revert a condition to more closely match Pkgsrc - avoiding a magnitude comparison on mPid (which might be a pointer)



Module Name:	pkgsrc-wip
Committed By:	davidsainty <david.sainty%gmail.com@localhost>
Pushed By:	dsainty
Date:		Thu Jan 20 13:47:57 2022 +1300
Changeset:	b88db4a1b035b7f8f946d2e70983ffab69028c0c

Modified Files:
	zoneminder/patches/patch-src_zm_thread_cpp

Log Message:
Revert a condition to more closely match Pkgsrc - avoiding a magnitude comparison on mPid (which might be a pointer)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b88db4a1b035b7f8f946d2e70983ffab69028c0c

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

diffstat:
 zoneminder/patches/patch-src_zm_thread_cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diffs:
diff --git a/zoneminder/patches/patch-src_zm_thread_cpp b/zoneminder/patches/patch-src_zm_thread_cpp
index c8cda29baa..778643a245 100644
--- a/zoneminder/patches/patch-src_zm_thread_cpp
+++ b/zoneminder/patches/patch-src_zm_thread_cpp
@@ -45,7 +45,7 @@ Work around varying notion of an undefined mpid on pthread/not.
      throw ThreadException( "Can't self join thread" );
    mThreadMutex.lock();
 -  if ( mPid >= 0 )
-+  if ( mPid >= MPID_UNDEFINED )
++  if ( mPid != MPID_UNDEFINED )
    {
      if ( mStarted )
      {


Home | Main Index | Thread Index | Old Index