threads/65883: libkse's sigwait does not work after fork

Daniel Eischen eischen at vigrid.com
Thu Apr 22 06:20:24 PDT 2004


The following reply was made to PR threads/65883; it has been noted by GNATS.

From: Daniel Eischen <eischen at vigrid.com>
To: Max Fomitchev <max.fomitchev at kaspersky.com>
Cc: freebsd-gnats-submit at freebsd.org, freebsd-threads at freebsd.org
Subject: Re: threads/65883: libkse's sigwait does not work after fork
Date: Thu, 22 Apr 2004 09:15:01 -0400 (EDT)

 On Thu, 22 Apr 2004, Max Fomitchev wrote:
 > 
 > >How-To-Repeat:
 > bash-2.05b# gcc kse_test.c -o kse_test -lkse
 > bash-2.05b# ldd kse_test
 > kse_test:
 >         libkse.so.1 => /usr/lib/libkse.so.1 (0x2806b000)
 >         libc.so.5 => /usr/lib/libc.so.5 (0x2808b000)
 > bash-2.05b# ./kse_test; echo $?
 > 0
 > bash-2.05b# ps -ax | grep kse_test
 > 62288  ??  S      0:00.00 ./kse_test
 > bash-2.05b# kill -INT 62288
 > bash-2.05b# ps -ax | grep kse_test
 > 62288  ??  R      0:00.00 ./kse_test
 > bash-2.05b# kill -9 62288
 > bash-2.05b# ps -ax | grep kse_test
 
 I can't repeat this with libpthread (it's no longer libkse).
 
 -bash-2.05b$ gcc -Wall -o kse_test kse_test.c -lpthread
 -bash-2.05b$ ldd kse_test
 kse_test:
         libpthread.so.1 => /usr/lib/libpthread.so.1 (0x2807a000)
         libc.so.5 => /lib/libc.so.5 (0x2809d000)
 -bash-2.05b$ kse_test
 -bash-2.05b$ echo $?
 0
 -bash-2.05b$ ps -ax | grep kse_test
   712  ??  S      0:00.02 kse_test
   698  p1  I      0:00.85 nedit kse_test.c
   727  p1  D+     0:00.02 grep kse_test
 -bash-2.05b$ kill -INT 712
 -bash-2.05b$ ps -ax | grep kse_test
   698  p1  I      0:00.85 nedit kse_test.c
   729  p1  S+     0:00.03 grep kse_test
 
 -- 
 Dan Eischen
 


More information about the freebsd-threads mailing list