Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2004 09:15:01 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Max Fomitchev <max.fomitchev@kaspersky.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: threads/65883: libkse's sigwait does not work after fork
Message-ID:  <Pine.GSO.4.10.10404220911040.14934-100000@pcnet5.pcnet.com>
In-Reply-To: <200404221247.i3MClVLW013761@www.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10404220911040.14934-100000>