Skip to content

Commit 72a2ff5

Browse files
committed
test4
1 parent 04f9f42 commit 72a2ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

depends/android/zvbi/zvbi-android-pthread_testcancel.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ diff -ru zvbi/src/io-v4l.c zvbi-new/src/io-v4l.c
1515
for (;;) {
1616
- pthread_testcancel();
1717
+ sigset_t waiting_mask;
18-
+ if(sigpending (&waiting_mask, SIGUSR1))
18+
+ if(sigpending (&waiting_mask))
1919
+ pthread_exit(0);
2020

2121
r = read(v->fd, raw->data, raw->size);
@@ -37,7 +37,7 @@ diff -ru zvbi/src/io-v4l2k.c zvbi-new/src/io-v4l2k.c
3737
/* from zapping/libvbi/v4lx.c */
3838
- pthread_testcancel();
3939
+ sigset_t waiting_mask;
40-
+ if(sigpending (&waiting_mask, SIGUSR1))
40+
+ if(sigpending (&waiting_mask))
4141
+ pthread_exit(0);
4242

4343
r = read(v->fd, raw->data, raw->size);

0 commit comments

Comments
 (0)