From 38a378e9c2b296d9d3f77118267991a8ba762172 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 13:08:36 +0000 Subject: auto-import changelog data from telnet-0.0.0.1-1.src.rpm Tue Jun 29 2004 Harald Hoyer - 1-1 - test script for strange signal behaviour --- diff --git a/telnet.spec b/telnet.spec new file mode 100644 index 0000000..4a61aa7 --- /dev/null +++ b/telnet.spec @@ -0,0 +1,55 @@ +Summary: telnet +Name: telnet +Group: test/test +Version: 0.0.0.1 +Release: 1 +License: GPL +ExclusiveArch: %{ix86} +Buildroot: %{_tmppath}/%{name}-root + +%description +test + +%prep +cat > conftest.c < +#include +#include +volatile int count=0; +void handle(int foo) { count++; } +int main() { + int pid=getpid(); + int tcount; + signal(SIGINT, handle); + kill(pid,SIGINT); + kill(pid,SIGINT); + kill(pid,SIGINT); + tcount = count; + if (tcount!=3) { + fprintf(stderr, "count = %d\n", tcount); + sleep(1); + if(count != 3) { + fprintf(stderr, "count = %d\n", count); + return 1; + } + } + return 0; +} +EOF + + +%build +gcc $RPM_OPT_FLAGS -g -o conftest conftest.c + +%install +./conftest || exit 10 + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files + +%changelog +* Tue Jun 29 2004 Harald Hoyer - 1-1 +- test script for strange signal behaviour +