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

Bug#258740: marked as done (sigwait and -lpthread.)

Your message dated Thu, 12 Apr 2007 11:47:56 +0200
with message-id <461E004C.8080207@aurel32.net>
and subject line Closing bugs fixed in unreleased version 2.4-1 of the glibc
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
version: 2.3.2.ds1-13

When i link the below program with -lpthread I can't kill the application with SIGTERM. I found that /proc/<pid>/status list some different SigBlk

#include <stdio.h>
#include <signal.h>
#include <sys/wait.h>

       sigset_t set;
       int sig;

       sigwait(&set, &sig);
       if(sig == SIGCHLD ){

                * Removing the zombie(s)
               while(wait3(NULL,WNOHANG,NULL) > 0) ;
       } else {

printf("Received a signal on which i was not doing a sigwait \n");


I am running this on a 2.4 kernel. With 2.6 it seems to work fine. ( I found that 2.6 strace reports rt_sigtimedwait where as strace with 2.4 reports rt_sigsuspend )

$more /etc/debian_version

$ dpkg --status libc6-dev
Package: libc6-dev
Status: install ok installed
Priority: standard
Section: libdevel
Installed-Size: 8672
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Source: glibc
Version: 2.3.2.ds1-13
Replaces: man-db (<= 2.3.10-41), gettext (<= 0.10.26-1), ppp (<= 2.2.0f-24), libgdbmg1-dev (<= 1.7.3-24), ldso (<= 1.9.11-9), netkit-rpc, netbase (<< 4.0), kerberos4th-dev (<< 1.2.2-10)
Provides: libc-dev
Depends: libc6 (= 2.3.2.ds1-13), linux-kernel-headers
Recommends: c-compiler
Suggests: glibc-doc, manpages-dev
Conflicts: libstdc++2.10-dev (<< 1:2.95.2-15), gcc-2.95 (<< 1:2.95.3-9), libpthread0-dev, libdl1-dev, libdb1-dev, libgdbm1-dev, libc6-dev (<< 2.0.110-1), locales (<< 2.1.3-5), libstdc++2.9-dev, netkit-rpc, libc-dev

--- End Message ---
--- Begin Message ---
Version: 2.5-1

  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

--- End Message ---

Reply to: